Powerstore 2 help
I have a css modified Powerstore 2 and orders are coming through fine however they are not being saved in the orders database.
I have attached the confirm.php file.
Please help if you can.
I have a css modified Powerstore 2 and orders are coming through fine however they are not being saved in the orders database.
I have attached the confirm.php file.
Please help if you can.
The problem is occurring because you have changed the Submit order to a in image form field instead of a Button form element.
find the following code in 2 places:
if (isset($_POST["Submit_order"])) // Trigger
{
and change it to:
if (isset($_POST["Submit_order_x"])) // Trigger
{
Thanks Jason! I really appreciate it. I'll post to confirm it's working.
BChilds
Hi Jason,
It worked! Thanks alot. Would this be a problem on other pages as well where I'm using images on submit buttons?
I don't uderstand how adding _x to it makes it work.... can you explain?
Thanks again,
B Childs
If you want to see the full site as an example of a killer powerstore design: www.tacmedsolutions.com :-)
The image form element does not have a value attribute.
when an image for element type is used, no value will be passed, but it will pass the x and y coordinates of where the mouse clicked the image.
you can demonstrate this by creating a simple for with an image field and setting the method to get, you will see in the querystring:
?imageField.x=21&imageField.y=22
since you cant check for the image fields value, you need to check for the x or y coordinates:
if (isset($_POST["imageField_x"])
or:
if (isset($_POST["imageField_y"])
PowerStore was not coded to use an image field, it was coded to use a standard submit button.
if you swap a standard submit button with an image field, you will break the trigger code for the element.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.