close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Powerstore3 Checkout problem

Thread began 2/18/2010 7:22 am by info399484 | Last modified 2/23/2010 7:45 pm by Jason Byrnes | 1036 views | 6 replies |

info399484

Powerstore3 Checkout problem

Hi,

Using powerstore 3 with no payment gateway configured.

On the page of " confirm.php" after I enter "submit order". I expect the shopping cart to be emptied and to now show the page "checkout_success.php".

However, The page "confirm.php" remains on the screen and the shopping cart is still full, making it too easy to re-enter "submit order" and to duplicate the order.

The orders are being processed and confirmation e-mails are being sent.

Please explain, how to change the behavior of the "submit_order button.

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

the Universal Email server behavior on the confirm page should be configured to redirect to the success page after the email is sent.

If the universal email server behavior is correctly configured to redirect, there may be a php error occurring, add the following code at line 1 to turn error reporting on:

php:
<?php
error_reporting
(E_ALL);
ini_set('display_errors','on');
?>





If you need further assistance, please send a copy of the confirm.php page.

Sign in to reply to this post

info399484

Powerstore3 Checkout problem

Hi Jason,

I need further assistance, I have attached a copy of Confirm.php



Many thanks

Attached Files
confirm.zip
Sign in to reply to this post

Jason ByrnesWebAssist

1) I don't see the code for turning on error reporting.

Did you try that? Was there an error?


2) Try changing line 1090 - 1092:

php:
else if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))  {

  $WA_Store_Cart->redirStr = "checkout_success.php";
}



php:
else if (isset($_POST["Submit_order"]))  {

  $WA_Store_Cart->redirStr = "checkout_success.php";
}
Sign in to reply to this post

info399484

Yes, I did try the code for turning on error reporting and it did not report any errors. so I removed it.

Further to your reply,
I have changed the code 1090 - 1092 as per your suggestion and the result is still the same.

The cart does not empty and it does not index on to checkout_success.php.


What next ?

Sign in to reply to this post

info399484

Powerstore3 checkout problem

I have re-inserted the code for turning on error reporting.

and changed the code 1090 - 1092 "attached file confirm.php"

I am hoping for a response.

Thank you

Attached Files
confirm.zip
Sign in to reply to this post

Jason ByrnesWebAssist

try changing 1229 - 1231:

php:
if (""!="")     {

    header("Location: ");
  }




to:

php:
if (""!="checkout_success.php")     {

    header("Location: checkout_success.php");
  }
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...