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.
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
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
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- PhoenixCart Developer
- Posts: 1184
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Contact:
Re: 1.08.7 Fresh install - Continue Shopping 2.0 Error
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.
-
- Posts: 14
- Joined: Mon Nov 08, 2021 6:42 am
- Contact: