close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Lost Cart on Return

Thread began 11/15/2012 2:29 pm by Mike Perry | Last modified 11/15/2012 3:35 pm by Jason Byrnes | 1148 views | 7 replies |

Mike Perry

Lost Cart on Return

ECart 5 -- payment.php submits a donation total to the third party payment portal. Return URL is success.php.

For some reason the cart is clearing either before opening the payment portal page, or upon loading of success.php, so the return is being redirected.

Cart is saved in SESSION, not cookies. The same process worked fine last year.

What changed? Pages attached.

Mike

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

Jason ByrnesWebAssist

are you changing domains from the cart page to the success page?


sessions are based on the domain, if you change domains, the session will be lost.

Sign in to reply to this post

Mike Perry

Yes -- I'm pretty sure it worked that was last year.

So the solution is to store the session data in cookies -- I know the cookie data is sensitive to how the domain is specified.

Do I need to specify a domain??

Sign in to reply to this post

Jason ByrnesWebAssist

if you need to change domains, you need to p[ass the cart to the new domain in a form, then repopulate the cart.

see the following tutorial for detials:
ecart_ssl_ht.php

Sign in to reply to this post

Mike Perry

Originally Said By: Jason Byrnes
  if you need to change domains, you need to p[ass the cart to the new domain in a form, then repopulate the cart.

see the following tutorial for detials:
ecart_ssl_ht.php  



If I read this right I follow the instructions from "Modify the checkout page to receive your cart values" on my checkout page. Checkout them goes to confirm, and then I use a subsequent payment page to navigate to the SSL payment portal.

Right??

Sign in to reply to this post

Jason ByrnesWebAssist

seams to me from the page you sent that it is the payment page that is changing the domain:

<form class="eC_Simple_Pacifica_Arial" action="https://pcisecure.diamondmindschools.com/cart/cart.php" method="POST">
Donation Total:&nbsp;&nbsp;&nbsp; <input type="text" size="8" name="amount" value= <?php echo WA_eCart_DisplayMoney($ccds, $ccds->GrandTotal()); ?> />

by posting to the cart.php page.

Sign in to reply to this post

Mike Perry

Originally Said By: Jason Byrnes
  seams to me from the page you sent that it is the payment page that is changing the domain:

<form class="eC_Simple_Pacifica_Arial" action="https://pcisecure.diamondmindschools.com/cart/cart.php" method="POST">
Donation Total:&nbsp;&nbsp;&nbsp; <input type="text" size="8" name="amount" value= <?php echo WA_eCart_DisplayMoney($ccds, $ccds->GrandTotal()); ?> />

by posting to the cart.php page.  


That's true. So then I make the Get Content From Form modification to payment.php, right?

ETA: I'm just sending a donation total to the remote portal -- there are no order details being transmitted. . .

Sign in to reply to this post

Jason ByrnesWebAssist

no, add the cart corm to the payment page.

add the populate cart from form behavior to the cart.php page.

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