AbanteCart Community

AbanteCart Development => Customization help => Topic started by: Geoffrey on July 13, 2017, 03:35:07 PM

Title: How to change pp_express success redirect from g_s_2 to g_s-3?
Post by: Geoffrey on July 13, 2017, 03:35:07 PM
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. 
Title: Re: How to change pp_express success redirect from g_s_2 to g_s-3?
Post by: llegrand 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

Title: Re: How to change pp_express success redirect from g_s_2 to g_s-3?
Post by: Geoffrey 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?
Title: Re: How to change pp_express success redirect from g_s_2 to g_s-3?
Post by: abolabo on July 14, 2017, 06:30:00 AM
did you debug this 344 line?
https://github.com/abantecart/abantecart-src/blob/1.2.10/public_html/extensions/default_pp_express/core/default_pp_express.php#L344