I am trying to add an additional field to my checkout_shipping, Not a problem it is added to the tpl_checkout_shipping_default.php and it appears on my form.
Now when I submit the page to go to ?main_page=checkout_payment I tried to read the $_POST['fieldname'] and nothing there.
I put this in the top of the template page and nothing for either the POST or GET.
Can someone tell me how to pass from one page to another then to finally store into the DB?
Re: $_POST vatiables
This is most likely because checkout_shipping doesn't go directly to checkout_payment.
Instead it calls itself, checks that it has everything it needs and if not redisplays the checkout_shipping form.
Only if it's good to go forward will it redirect to checkout_payment page, wiping $_POST along the way.
So to preserve your new data, you would need to detect it in the header_php file for checkout_shipping and store it in a $_SESSION variable.
By accurax in forum Setting Up Categories, Products, Attributes
Last Post: 4 Oct 2008, 02:07 PM
By audleman in forum General Questions
Last Post: 8 Apr 2008, 07:55 PM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC