Age resctriction

Comments

1 comment

  • Avatar
    Ryan Schaffner

    I concur.  If the age restriction flag is set, there should be a check to see if a product that is already age restricted is in the cart.  If it is, then do not display a second warning. 

    Possible solutions.  Item added to cart, set global variable with the date of the age restriction.  If that global variable is set, check it first before displaying the prompt.  That way, if an 18+ product is added, and a 21+ product is selected, it will show the age restriction tab again, as it is at a whole new level.  But if a 21+ product is added first, they are obviously over 18.

    0
    Comment actions Permalink

Please sign in to leave a comment.