Age Verification on Checkout
-
Hey guys, i am building a woocommerce shop for my business, and struggling on adding a age verification on checkout π I have an PHP code which asks the customer to enter
their ID-number to check the age.
This is the script:I want to paste this on the checkout-page, but dont really know how… Cause the verification should always appear on guest-orders, but for registered members it should appear once. This would require adding two columns to the customerDB i think?
This are my thoughts on it…on GUEST order checkout
> show verification.php on checkout page
>if guest clicks on “Buy now”, check:
>if verification.php was successfull = allow checkout
>else = forbid checkout + show error “Not old enough”on REGISTERED MEMBER checkout
> check(customerDB?)
>if member already did successfull verification then hide verification.php + allow proceeding>else = show verification.php + forbid proceeding
>Then, if member clicks on “Buy now”, check:
>if verification successfull then allow checkout + enter “verificated” in DB
>else = forbid checkout + show error: Not old enoughCan somebody help me with this?
Thanks for your time π- This topic was modified 7 years, 8 months ago by .
- This topic was modified 7 years, 8 months ago by .
The page I need help with: [log in to see the link]
The topic ‘Age Verification on Checkout’ is closed to new replies.