close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

confirm not proceeding to success page

Thread began 9/06/2009 7:27 pm by uberbean | Last modified 1/06/2010 6:59 am by toleehua356796 | 8089 views | 24 replies |

msjj000Beta Tester

confirm not proceeding to success page

Hi WA,

My confirm.php if reshowing the cart.php page rather than the checkout_success.php page. all the email notifications etc work fine. Its a mirror of an existing site that worked fine.

Any suggestions?

Thanks, Mark.

Sign in to reply to this post

Eric Mittman

You should be able to take a look at the local checkout server behavior on the page to check to see where it is trying to go to. If it does not have the checkout success page listed as the success go to then there will be some problems. You can also try browsing to the checkout success file directly from your confirm page to see if you get taken back to the cart. If there is some code on your checkout success page that sends you back to the cart page you would experience something like this.

You can also do a find on your confirm page in the source code to look for a reference to your cart page, this would help to indicate how it is getting to this page. Let us know what you discover.

Sign in to reply to this post

msjj000Beta Tester

Hi Eric,

Thanks for the tips.

On line 971 the original confirm.php page has
$WA_redirectURL = "checkout_success.php";
when removing the checkout_success leaving $WA_redirectURL = ""; it allowed for both the order confirmation to be displayed on the store site and for an email confirmation to be sent.

On a replica site this causes the cart.php page to be displayed. When reinserting the original line (971) the confirmation (checkout_success.php) page is displayed however the confirmation of order email is not being sent which was the original reason for modifying the confirm.php page.

Haven't found any other issues at this stage and haven't made any other modifications from the working store site. Any other suggestions?

Thanks, Mark.

Sign in to reply to this post

Jason ByrnesWebAssist

On the replica site, when removing the redirect at line 971, what is the full address in the address bar when viewing the confirm page and the full address in the address bar when you get to the cart.php page?

Sign in to reply to this post

msjj000Beta Tester

Hi Jason,

Here are the two links on the sister (second) site where with the text checkout_success.php removed from line 971 and where the successful transaction is redirected to the cart.php page. The original site still works perfectly with the above mod in place and it didn't work correctly until the above change was made.

confirm.php
cart.php

Thanks, Mark.

Sign in to reply to this post

Jason ByrnesWebAssist

I'm not able to reproduce the problem, when i visit your site and process a transaction through, i get to:
checkout_success.php

Sign in to reply to this post

msjj000Beta Tester

more clarification

Hi Jason,

Thanks for testing it out. Apologies l neglected to mention that I reinserted checkout_success.php on line 971. The reason for this is so that the checkout_success.php comes up and not cart.php as the site is live. The gateway provider sends out a transaction confirmation which I will use temporarily so at least they get a receipt as opposed to the detailed email from PowerStore; however this site doesn't send the replica of the checkout_success.php page and only displays the cart.php page.

All other notifications work fine. For example, registration, forgotten email and shipping.

One my main site when I removed the above from line 971 it meant that both the email notification from the site of a successful purchase and the checkout_success page both worked and naturally I modified the same site to set this one up.

I'll make the change on Monday so you can have another look if you don' mind please?

Thanks, Mark.

Sign in to reply to this post

Jason ByrnesWebAssist

Hmmm, there should not be any reference to the cart.php page on the confirm page. can you send a copy of your confirm page so I can look into the code.

Sign in to reply to this post

msjj000Beta Tester

Hi Jason,

Thanks. Here it is.

Mark.

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

Jason ByrnesWebAssist

Try changing line 1030 - 1035:

php:
<?php
if ($WA_Store_Cart->IsEmpty())     {
  
$WA_Store_Cart->redirStr "cart.php";
  
$WA_Store_Cart->cartAction "RedirectIfEmpty";
}
?><?php




to:

php:
<?php
$WA_Store_Cart
->GetContent();
?>
<?php
if ($WA_Store_Cart->IsEmpty())     {
  
$WA_Store_Cart->redirStr "cart.php?empty=true";
  
$WA_Store_Cart->cartAction "RedirectIfEmpty";
}
?><?php
Sign in to reply to this post
loading

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...