Hi guys,
I'd like to be able to validate the form on the product_info page.
That is, when I look at a product, I have an "I agree to pre-purchase three months of insurance" (for example), and I'd like for the user not to be able to go to the shopping cart page until the field is checked.
I've discovered that there's a file in /includes/modules/pages/product_info/header_php.php where I should likely put my code in. This seems to be the case with the validation on the shopping cart page, for example.
However, I don't know what code to put here. Should I check directly the values of $_POST? And how do I stop the page from forwarding to the shopping cart page?
I hope this makes sense, feel free to ask me any questions
Bookmarks