Is there a way to limit users on my site to buy only 2 items from a list of products? Am using Drupal 7 with Commerce module and Rules. I added a new rule to when adding or removing and item from the shopping cart, it would check if the total quantity is bigger than 2, then it would remove the last element like this.
Event Before adding a product to the cart
After adding a product to the cart
Total product quantity comparison Parameter: Order: [commerce_order], Operator: >, Quantity: 2
Remove an item from a list
Selected list: commerce-order:commerce-line-items
and the item to remove is
Sadly its not working, and I really need your help. thanks