If this is your first visit, check our documentation. To post, register or login.
Forums / PayPal Express Checkout support / PayPal Module causing Infinite Loop when Amazon Checkout added

PayPal Module causing Infinite Loop when Amazon Checkout added

Locked

Started by function on 17 May 2013, 8:04 PM · Views: 6,018

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
17 May 2013, 8:04 PM
#1
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

PayPal Module causing Infinite Loop when Amazon Checkout added

If a customer selects PayPal right after they click Check Out, PayPal works. However, if a customer does not select a payment method (ie: they click checkout and then continue through Steps 1-3 on the shopping cart), it loops back to Step 1 of 3 with an error:

"You have changed the items in your cart since shipping was last calculated, and costs may have changed. Please verify/re-select your shipping method." -- with absolutely no changes in shipping, etc.

PayPal is on an infinite loop - issue is coming from the payment module and I know this because PayPal took a look at the API. Is there a patch for the PayPal express payment module?

  • has anyone else experienced this or have a fix * ?

Shipping settings: domestic is free/international is per item shipping.

17 May 2013, 9:02 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

Supply information about your install
all addons
php ver
mysql ver
A link is always helpful

Zen-Venom Get Bitten

17 May 2013, 9:21 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

Sounds like broken shopping_cart class or conflicting plugins.
Please provide exact steps to completely reproduce a site that consistently demonstrates your symptoms. Assume I'm starting with a fresh uncustomized brand new install of v1.5.1

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 May 2013, 10:10 PM
#4
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

OK. Thank you for your replies Kobra and Dr Byte. Yes, the issue was the same as the previous poster with an error saying that the contents had changed.

I would be happy to PM one of you the FTP details so you can take a look - as the only changes that were made to any php code have been to install Amazon Inline but not to install PayPal.

The file that was modified for Amazon was: tpl_shopping_cart_default.php per the instructions that were provided to us. I should note that the Checkout by Amazon is working except that the button is floating in the top left corner on checkout step 2 of 3. I am including the tpl_shopping_cart_default that is currently uploaded on the server and will be happy to revert it to a different one that would work with Amazon (and PayPal).

The current shopping cart PHP file: http://www.disseminated.net/zencart

19 May 2013, 10:03 PM
#5
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

Dr Byte, Kobra:

Did you guys get a look at the Amazon shopping_cart_tpl file?

21 May 2013, 2:26 AM
#6
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

I still have not received any response from either. Is there something wrong with the php file?

21 May 2013, 4:43 AM
#7
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

  • NEW UPDATE *

I revert the tpl_shopping_cart PHP file from the modified to the original and walla! STILL SAME ERROR :(

"You have changed the items in your cart since shipping was last calculated, and costs may have changed. Please verify/re-select your shipping method."

This would mean there are NO modified files in the shopping cart. Please advise. Thank you

21 May 2013, 5:26 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

This would mean there are NO modified files in the shopping cart
Well you never answered the questions in my posting #2

As a default install does not exhibit this - you must have one or many altered files

Zen-Venom Get Bitten

24 May 2013, 12:15 PM
#9
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

Kobra, DrBye:

Server info is as follows:

PHP version 5.3.21
MySQL version 5.0.96-community-log
Perl version 5.8.8
I have messaged you guys the URL to the website so you can check it out - since I want to protect the client's website.

24 May 2013, 1:00 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

Supply information about your install
all addons
php ver
mysql ver

You can try switching to the classic template and see if that works
If so then it is narrowed to a template issue

Zen-Venom Get Bitten

24 May 2013, 1:18 PM
#11
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

Kobra:

It seems you're saying the same thing over and over again and I responded to your post. I'm not sure how this is going to help us.

Can you point to a file within the PHP where the issue is so I can fix it? DrByte seemed to have encountered and resolved this in the past.

Thank you

24 May 2013, 1:19 PM
#12
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

kobra:

Supply information about your install
all addons
php ver
mysql ver

You can try switching to the classic template and see if that works
If so then it is narrowed to a template issue

  • not a template issue *
24 May 2013, 1:39 PM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

It seems you're saying the same thing over and over again and I responded to your post
And you have yet to provide the information I have asked for...
What about your 3rd party addons???

As you have posted - what happens if you remove Amazon checkout

Maybe, it altered a core file??? that is causing this

Zen-Venom Get Bitten

24 May 2013, 2:04 PM
#14
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

kobra:

And you have yet to provide the information I have asked for...
What about your 3rd party addons???

As you have posted - what happens if you remove Amazon checkout

Maybe, it altered a core file??? that is causing this

So, I actually isolated it and removed Amazon, and PayPal still worked, and the issue was still there. The 3rd party addon that you're referring to (I'm assuming the Make Offer feature) is certainly not the issue because this loop didn't begin with that feature. Ie: the payment process was working fine after the feature was installed (with PayPal). So it's very puzzling! :(

24 May 2013, 2:38 PM
#15
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

The 3rd party addon that you're referring to (I'm assuming the Make Offer feature)
We have no idea what addons you have because you have not provided a list of them

Zen-Venom Get Bitten

24 May 2013, 2:46 PM
#16
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

kobra:

We have no idea what addons you have because you have not provided a list of them

The only addon that I can think of which isn't a real modification is the Make Offer feature that we had Turbo eCart develop. Everything else is just Zen with PayPal and Amazon

24 May 2013, 5:22 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

function:

The file that was modified for Amazon was: tpl_shopping_cart_default.php per the instructions that were provided to us. I should note that the Checkout by Amazon is working except that the button is floating in the top left corner on checkout step 2 of 3. I am including the tpl_shopping_cart_default that is currently uploaded on the server and will be happy to revert it to a different one that would work with Amazon (and PayPal).

The current shopping cart PHP file: http://www.disseminated.net/zencart
You've put the file up as a .php file, so when attempting to download it all it does is "run" it as if it was a PHP script to be executed.
Either rename it to .txt or zip it up.
Or just attach it here to this thread.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 May 2013, 9:14 PM
#18
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

DrByte:

You've put the file up as a .php file, so when attempting to download it all it does is "run" it as if it was a PHP script to be executed.
Either rename it to .txt or zip it up.
Or just attach it here to this thread.

DrByte: https://www.disseminated.net/zencart/tpl_shopping_cart_default_CURRENT.txt

Just renamed it to a text file

24 May 2013, 9:35 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

I've set up a fresh v1.5.0 site with no addons and enabled PayPal Express and PayPal Pro, and cannot get any infinite loop to occur with either module during checkout.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 May 2013, 9:40 PM
#20
function avatar

function

New Zenner

Join Date:
Mar 2013
Posts:
29
Plugin Contributions:
0

Re: PayPal Module causing Infinite Loop when Amazon Checkout added

DrByte:

I've set up a fresh v1.5.0 site with no addons and enabled PayPal Express and PayPal Pro, and cannot get any infinite loop to occur with either module during checkout.

The issue must be the PayPal and Amazon combination. PayPal was working fine