Validating product_info page
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
Re: Validating product_info page
Really, the part I'm having a REALLY hard time figuring out is how I stop the product_info page from forwarding to the shopping cart page if an error has occured.
Can anyone shed some light on the matter?
By mauiexcellent in forum General Questions
Last Post: 14 Nov 2006, 02:23 PM
By byob in forum Basic Configuration
Last Post: 2 Nov 2006, 08:38 PM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC