Author Topic: How to change pp_express success redirect from g_s_2 to g_s-3?  (Read 930 times)

Offline Geoffrey

  • Full Member
  • ***
  • Posts: 149
  • Karma: +26/-3
    • View Profile
I'm running default_pp_express.

My cart page has a PayPal Express button. 

After a Paypal Express success, the customer is returned to guest_step_2. 

I want to change the return destination to guest_step_3. 

I looked through the entire extension/deafult_pp_express folder. 

I tried editing /extensions/default_pp_express/storefront/responses/extension/default_pp_express.php , but it didn't work. 

Ultimately I changed every guest_step_2 reference in that file to gues_step_3, but nothing happened on the front end. 

A Paypal success still drops the customer on the guest_step_2 page. 

What do i change to make the pp_express extension return the customer back to g_s_3 after a success?

Thanks. 

Online llegrand

  • Hero Member
  • *****
  • Posts: 1414
  • Karma: +364/-2
    • View Profile
Re: How to change pp_express success redirect from g_s_2 to g_s-3?
« Reply #1 on: July 13, 2017, 04:50:58 PM »
have you tried using PayPal  Auto Return to set your url preference page?

In your PayPal account it is under My Profile >  My Selling tools, then look for Website preferences

BTW,  I see you are making a lot of coding changes -  please make good notes -  as with version updates  the possibility of those files being overwritten with the upgrade are very high.

Lee


Offline Geoffrey

  • Full Member
  • ***
  • Posts: 149
  • Karma: +26/-3
    • View Profile
Re: How to change pp_express success redirect from g_s_2 to g_s-3?
« Reply #2 on: July 13, 2017, 06:22:07 PM »
Hello and thanks again!

I tried Auto Return several times, with their required language on the destination page, but it didn't work. 

While researching Auto Return, I found a description that said it will work unless the site's code or form specifies a different return page, in which case that code or form will override auto return. 

Since it is not working for me, I assume that guest_step_2 is specifically being called by something in my site code: either the pp_express extension or some other file. 

I've looked everywhere but can't find it. 

Any other ideas or suggestions?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1768
  • Karma: +246/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod