Continue Shopping Button

1.08.7 Fresh install - Continue Shopping 2.0 Error - Continue Shopping Button

Re: 1.08.7 Fresh install - Continue Shopping 2.0 Error

by raiwa » Thu Nov 11, 2021 8:18 am

You can of course use whatever fits your needs. Just some points to improve:
- strpos should be used with the strict operator "=== false"
- instead of javascript you could better use the built in "$_SESSION['navigation']->path[....
- with your logic, if a visitor comes from a page like index, login , create account, contact_us, conditions etc, to the shopping cart, he will be linked back to that page instead to the category of the last added product, which is supposed to be of more interest for a continue shopping experience.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: 1.08.7 Fresh install - Continue Shopping 2.0 Error

by justgovintage » Mon Nov 15, 2021 6:53 am

Yes, good ideas there. I may be adding a few more pages to the "exception" case where I don't want to go back to the previous page. Thanks.
justgovintage
Posts: 14
Joined: Mon Nov 08, 2021 6:42 am
Contact: