Looks good to me. Just some minor improvements I have suggested.

+++ sites/a...

Contribution Date
Technology
Contribution Project
Contribution Details

Looks good to me. Just some minor improvements I have suggested.

  1. +++ sites/all/modules/dc_ajax_add_cart/dc_ajax_add_cart.module (date 1573907834946) @@ -301,9 +301,25 @@ - $quantity = commerce_line_items_quantity($line_items, commerce_product_line_item_types()); ... + else { + $quantity = commerce_line_items_quantity($line_items, commerce_product_line_item_types()); + }

    Let the default $quantity = commerce_line_items_quantity($line_items, commerce_product_line_item_types()); stay, and this else block will not be required.

  2. +++ sites/all/modules/dc_ajax_add_cart/dc_ajax_add_cart.module (date 1573907834946) @@ -351,7 +367,22 @@ - $quantity = commerce_line_items_quantity($line_items, commerce_product_line_item_types()); ... + else { + $quantity = commerce_line_items_quantity($line_items, commerce_product_line_item_types()); + }

    Let the default $quantity = commerce_line_items_quantity($line_items, commerce_product_line_item_types()); and this else block will not be required.

Issue Status
Needs work
Contribution Author
Files count
0
Patches count
0