Jump to content

CubeCart Recommends

Photo

Resolved - Single Gateway Return to Checkout Loop


  • Please log in to reply
4 replies to this topic

#1 Dirty Butter

Dirty Butter
  • Members
  • 3,104 posts

Posted 30 January 2012 - 09:03 PM

I distinctly remember this being solved somewhere, but for the life of me I can't find it. There's a really simple code change someone shared to keep the single gateway from getting in a loop.

In testing something else, I just made a test order but cancelled it and returned to the site rather than actually paying on PayPal. That's the only payment choice I offer.

I want it to take me back to the basket, but it goes back to the page that is waiting for the PayPal page to load, so it's in effect in a loop.

index.php?_a=confirm is what I want, instead of a=gateway, but I don't know which file to change.

#2 sparky5693

sparky5693
  • Members
  • 54 posts

Posted 30 March 2012 - 03:22 AM

Did you ever figure this one out?

#3 Dirty Butter

Dirty Butter
  • Members
  • 3,104 posts

Posted 30 March 2012 - 01:11 PM

Sorry, but no.

#4 Kraken

Kraken
  • Members
  • 42 posts

Posted 14 March 2013 - 03:05 PM

I know this is an old topic but I recently had to do this myself so I though it might help others in the future if I posted what I did.
 
Edit the modules/gateway/PayPal/gateway.class.php file. At around line 75 you should find the following line of code:

 

'cancel_return' => $GLOBALS['storeURL'].'/index.php?_a=gateway',

 

change it to this

 

'cancel_return' => $GLOBALS['storeURL'].'/index.php?_a=confirm',



#5 Dirty Butter

Dirty Butter
  • Members
  • 3,104 posts

Posted 16 March 2013 - 01:51 PM

THANKS!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users