Results 1 to 2 of 2
  1. #1
    Join Date
    May 2007
    Posts
    18
    Plugin Contributions
    0

    Default Validating product_info page

    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

  2. #2
    Join Date
    May 2007
    Posts
    18
    Plugin Contributions
    0

    Default 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?

 

 

Similar Threads

  1. Page validating (error checking)
    By marcopolo in forum General Questions
    Replies: 4
    Last Post: 19 Oct 2015, 10:04 PM
  2. v151 Validating new radio buttons I added to the login page
    By aestheticdesign in forum General Questions
    Replies: 2
    Last Post: 5 Jun 2014, 09:57 PM
  3. Validating Product Info Page
    By moesoap in forum General Questions
    Replies: 14
    Last Post: 28 Jun 2011, 02:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR