0

I am working with the Drupal Commerce and the Commerce product comparison module. Here I need to limit the products.

How do I limit the products from the comparison?

1 Answer 1

0

You may solve this through Rules module.

Event: After udpdating an already existing line item

Conditions: 1/ data comparison: commerce-line-item:type = product 2/ data comparison: commerce-line-item:commerce-product:type = Your given product type 3/ data comparison: commerce-line-item:quantity is greater than 1

Action: - set data value: commerce-line-item:quantity 1 - display custom message

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.