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
Let's add a new product property indicating whether a "Minimum age to purchase" could be specified.
Let's name it - "Age verification" (disabled by default). Once ticked a store owner will be able to enter a child integer property "Minimum age to purchase" (set to 18 by default).
Also once "Age verification" is ticked ensure that "Date of birth" customer option is enabled in admin area. Otherwise, display an yellow warning.
Such products could be viewed by customers. But they will require customer registration before checkout (so he can enter this date of birth during checkout). And they will require a "date of birth" to be specified for customers (ensure it's entered for such customers who registered before this option was enabled).
Then validate this property in the "GetProductWarnings" method if a customer is too young, then display a warning that this products is available for customers older than N years"
The text was updated successfully, but these errors were encountered:
Let's add a new product property indicating whether a "Minimum age to purchase" could be specified.
Let's name it - "Age verification" (disabled by default). Once ticked a store owner will be able to enter a child integer property "Minimum age to purchase" (set to 18 by default).
Also once "Age verification" is ticked ensure that "Date of birth" customer option is enabled in admin area. Otherwise, display an yellow warning.
Such products could be viewed by customers. But they will require customer registration before checkout (so he can enter this date of birth during checkout). And they will require a "date of birth" to be specified for customers (ensure it's entered for such customers who registered before this option was enabled).
Then validate this property in the "GetProductWarnings" method if a customer is too young, then display a warning that this products is available for customers older than N years"
The text was updated successfully, but these errors were encountered: