Closed (duplicate)
Project:
Commerce License
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2018 at 10:27 UTC
Updated:
26 Jan 2019 at 13:10 UTC
Jump to comment: Most recent
Comments
Comment #2
joachim commented>The check should be done before the item is added to cart.
It's not as simple as that, unfortunately...
Try one of these commerce patches -- I forget which one does the trick:
- #2903504: Add form validations in Cartform and in AddToCartForm
- #2930979: don't show the 'added to your cart' message if the item quantity is unchanged or 0; make CartEntityAddEvent aware of the original order item
Comment #3
drupgirl commentedDuplicate: https://www.drupal.org/project/commerce/issues/2930979