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

checkout problem

Thread began 4/10/2010 12:28 pm by jacob5136402106 | Last modified 4/16/2010 3:19 pm by Eric Mittman | 973 views | 7 replies |

jacob5136402106

checkout problem

Problem:
when a single item is selected and the customer is directed to the checkout page automatically and the customer selects the 'PayPal Express checkout" button it directs the customer to Paypal, then after the customer comits to make the purchase and paypal sends the customer back to my store the confirm page stats: "Your shopping cart is empty", and no purchase has been made.But..

If the customer clicks on the "Veiw Cart" button first, then selects the Pay Pal checkout button, everything works as it is suppose to and the purchase is processed.

What I have done:
My site would only work using the sandbox feature so I modified the file as suggested by Tom M:
......................................

OK, there is a problem in the ECart PayPal Express Checkout Code.

Specifically, the file PP_ECO_PHP.php

Here are lines 309-315:
function WA_PP_ECO_CallSOAP($sXML, $useSB) {
$soapObj = new WAPPECOSOAPObject;
$soapObj->soapURL = "https://api-3t.paypal.com/2.0/";
if ($useSB) {
$soapObj->soapURL = "https://api-3t.sandbox.paypal.com/2.0/";
}

I changed them to this (I commented out the PayPal sandbox URL, and the URL is now universally set to the PayPal non-sandbox URL):
function WA_PP_ECO_CallSOAP($sXML, $useSB) {
$soapObj = new WAPPECOSOAPObject;
$soapObj->soapURL = "https://api-3t.paypal.com/2.0/";
if ($useSB) {
$soapObj->soapURL = "https://api-3t.paypal.com/2.0/";
// $soapObj->soapURL = "https://api-3t.sandbox.paypal.com/2.0/";
}


Guess what. PayPal Express Checkout now works as expected. Of course, use of the Dev Sandbox is now disabled.
....................................................

After doing the above I was then able to make purchases thru Paypal but with the above problem of having to click on the "Veiw Cart" button first.

I set a product in my site for testing.
My site is:

www.jacobsfishinghole.com

The test product is under the catagory of "tools" and is called "Test-not real product". It is set at a price of $0.01. So if you would like to go to my site and try it you may.

Any help will be greatly appreciated.
Jacob

Sign in to reply to this post

Eric Mittman

When I test this out with the URL you provided I can see the issue. I add the item to the cart, then choose to checkout with PayPal. When I'm returned to the site I get the your cart is empty message.

When I look up at the URL I can see why, you are being redirected back to jacobsfishinghole.com/ instead of www.jacobsfishinghole.com/. This value is based on the settings that are in your wa_settings table.

It should include any www or any other preset that you have for your site, when you installed did you install with a URL of jacobsfishinghole.com? If so this is probably the reason you are getting this error. You should be able to check and update this value by going into your db and looking in the wa_settings table. In here for the root URL you should add in the www part and save your update.

Sign in to reply to this post

Eric Mittman

Please post back and let us know about this and also include some additional details about the sandbox issues you are having if they still persist.

Sign in to reply to this post

jacob5136402106

Eric,
I opened my database and edited the wa_settings table to include the "www". Then I had my friend try it by selecting the product and clicking on the "PayPal" button which sent him to paypal. and when he was done there and was sent back to my site he had the same result of "cart is empty" message. I then opened the site in DW and edited the site (site management) so the url also included the "www".
Same result.
as previuosly stated I have a test product under the catagory of tools for $0.01
my site is
www.jacobsfishinghole.com
Thanks for your help
Jacob

Sign in to reply to this post

shoconnor256175

This sounds like an htaccess problem that I've had with a joomla site and virtuemart.

The whois says you're with 1&1 and I am unfamiliar with the way they handle redirects, but check to make sure that all requests with or without the www point to the www.yoursite.com address. That is, in the address bar, if someone types yoursite.com that it automatically points them to the full address of www.yoursite.com and not just yoursite.com

I host with godaddy and its under their site redirects. If you're using cpanel I'm not sure how to do it, but I'll bet someone on this board or at 1&1 can help.

Sign in to reply to this post

Eric Mittman

Around line 124 on your checkout page you should see where the return URL is set:

php:
$WA_PP_ECO_Set_params[0][$nextIndex] = "ReturnURL";

$WA_PP_ECO_Set_params[1][$nextIndex] = "".$WAGLOBAL_Root_URL  ."pp_confirm.php";



This uses the global root URL that comes from your db and adds the 'pp_confirm.php' to it. Updating the value for the root URL on the live server should make this code go to the URL that is listed.

You could code the URL in here directly to see if it makes it work, to do that you would make line 125 look like this:

php:
$WA_PP_ECO_Set_params[1][$nextIndex] = "http://www.jacobsfishinghole.com/pp_confirm.php";



If you do not get the proper result with this update then there is probably a setting somewhere on your server that is causing this problem. Please give this a try and let us know the result.

Sign in to reply to this post

jacob5136402106

Fixed

Eric,
I changed the file as suggested above and now the checkout process is now working correctly. I had previously changed both my site information in DW and the url in my database to include the "www" as suggested without correcting the problem. But forcing the url (line 125 checkout.php) as suggested above worked.

Thank You,
Jacob

Sign in to reply to this post

Eric Mittman

I'm glad that worked out, this might be an issue with the way the server is setup like shoconnor256175 was talking about. It should use whatever values are specified.

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