You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added a new property to my Item/Product Document Type which contains other Commerce properties such as SKU.
I need to validate the value it contains before adding the product to the cart.
I noticed there is an event for this (ValidateOrderProductAdd) which had been demoed to check the stock value but should I be adding a new Event for my needs? If yes how do I go about this?
If I can use the existing validation, that's fine but again how do I access the newly created property as I can't see it listed under evt?
Or simply put should I do this in the controller when adding the product?
The text was updated successfully, but these errors were encountered:
I have added a new property to my Item/Product Document Type which contains other Commerce properties such as SKU.
I need to validate the value it contains before adding the product to the cart.
I noticed there is an event for this (ValidateOrderProductAdd) which had been demoed to check the stock value but should I be adding a new Event for my needs? If yes how do I go about this?
If I can use the existing validation, that's fine but again how do I access the newly created property as I can't see it listed under evt?
Or simply put should I do this in the controller when adding the product?
The text was updated successfully, but these errors were encountered: