Contribution Date
Technology
Contribution Project
Contribution Details
Looks good to me. Just some minor improvements I have suggested.
-
+++ 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 thiselse
block will not be required. -
+++ 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 thiselse
block will not be required.
Issue Status
Needs work
Contribution Issue Link
Files count
0
Patches count
0