function commerce_webform_commerce_cart_product_comparison_properties_alter in Commerce Webform 8
Same name and namespace in other branches
- 7.2 commerce_webform.module \commerce_webform_commerce_cart_product_comparison_properties_alter()
- 7 commerce_webform.module \commerce_webform_commerce_cart_product_comparison_properties_alter()
Implements hook_commerce_cart_product_comparison_properties_alter().
When multiple submissions are made before checkout with the same products in them, commerce will group the line items which stops the sid properly being updated.
File
- ./
commerce_webform.module, line 743 - Commerce Webform module file
Code
function commerce_webform_commerce_cart_product_comparison_properties_alter(&$comparison_properties) {
$comparison_properties[] = 'commerce_webform_sid';
}