close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Checkout page Paypal button

Thread begun 7/23/2011 12:50 am by lr_leal239405 | Last modified 7/25/2011 4:11 pm by lr_leal239405 | 2927 views | 8 replies |

lr_leal239405

Checkout page Paypal button

When I ran the checkout wizard I opted for the option to pay with credit card or Paypal. So the checkout page now has a big checkout with Paypal button on top. As of now it does nothing. It posts to the same page and all it does is take me back to the Shopping Cart display page telling me that it's empty. I need to make it work. Where do I begin? The checkout through credit card process is working fine, all the way to sending a receipt and storing in the dbs. So I just need to get the Paypal button (I guess express checkout through Paypal) button working. Any guidance would be appreciated.

Sign in to reply to this post

Ray BorduinWebAssist

Do you have a url where I can see the problem? Most likely the issue is that you are redirecting to a different domain. For instance you enter the site using yourdomain.com and it returns you to www.yourdomain.com or maybe it takes you to an https:// domain that doesn't match the original domain name.

If the domain name changes then the session is cleared and you get an empty cart message.

If you send me a url where I can reproduce the issue I can be more specific in my diagnosis since this is just a guess.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

Yes, the domain to add items to the basket is:

order/

Then just pick the Paypal button to check out and you'll see.

I did change the checkout button on the cart page to go through a SSL. That's probably the reason, so how would I make the Paypal button see the contents in the cart?

Thanks.

Levin.

Sign in to reply to this post

Ray BorduinWebAssist

Yes I see... when I click the checkout button it goes to the site:

checkout.php

which is a different domain and has a different session, so the cart is cleared. Read the eCart documentation about how to transfer your cart data to a different ssl server. That should do the trick.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

I edited my thread posting but you answered first. I had added the comment:

"I did change the checkout button on the cart page to go through a SSL. That's probably the reason, so how would I make the Paypal button see the contents in the cart?"

Well, I did follow the documentation you're referring to, a few days ago, and it's been working fine for the on site checkout process, but not for the Paypal button. So I really still need to know how to get the Paypal button to see the cart contents.

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of the checkout.php page from the https server. It appears you may not be populating the passed values back into the cart properly.

You might try adding a shopping cart display onto the checkout page. That would let you see if the cart is properly re-populated when transferred to the ssl server. My guess is that it is not.

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

Attached is the checkout page. I'm not as savvy on PHP or creating shopping carts (as this is my first one), however I'm thinking that the values are properly being passed because my confirm page has the values of what's in the basket and I can process the transaction ok except not with the Paypal checkout button.

Sign in to reply to this post

Ray BorduinWebAssist

The problem is the trigger you are using to populate the passed cart is set to "any form post", which causes it to try to reset the cart contents when you click the express checkout button.

The solution is to trigger from the original button name, so instead of:

// WA eCart Get Form
if ($_SERVER["REQUEST_METHOD"] == "POST") {

use:

// WA eCart Get Form
if (isset($_POST['Checkout'])) {

Sign in to reply to this post
Did this help? Tips are appreciated...

lr_leal239405

Ok, I edited it from the Server Behaviors and it looks like it's working now.

Thanks Ray.

Levin.

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