![]() |
Re: The universal solution "Continue Shopping Button"
My client requested that the visitor be returned to the last category they were viewing, rather than the last product or any other page. I decided to stick this near the bottom of my auth.php file so the last category info would follow the visitor around the site (removing the other code from cart.php):
PHP Code:
|
Re: The universal solution "Continue Shopping Button"
Quote:
What should happen if the transition to the cart was made from the page - Manufacture, search or etc.? |
Re: The universal solution "Continue Shopping Button"
In this case, transfers from those pages would not be counted. We don't use Manufacturers, but you could add conditions to check for any page to go back to. In the case of search, the code could be:
PHP Code:
|
Re: The universal solution "Continue Shopping Button"
Yurij,
The code works perfectly in X-cart 4.1.11. Excellent work, thank you for sharing it with the X-cart community! Best regards, e-webartist |
Re: The universal solution "Continue Shopping Button"
Great job. Thank you so much for sharing. Is it any chance to send customers back into root directory instead of subcategory?
Many thanks |
Re: The universal solution "Continue Shopping Button"
Quote:
Try change in "cart.php" code for universal solution "Continue Shopping Button" by this: PHP Code:
|
Re: The universal solution "Continue Shopping Button"
X-cart total newbie here. PHP, and SQL challenged.. Could someone please post or pm me the files and the edits including making the button, and all things needed to make this work in 4.1.10. I would love the ability to send the user back to the catagory they were viewing just before they hit add to cart. Right now the only thing I can tell thim is hit their backspace key to go back to that position.
Thanks Mike |
Re: The universal solution "Continue Shopping Button"
Quote:
please let me know can it made with just last category we were on as it seems cart taking more time to load with sql above may be im wrong. |
Re: The universal solution "Continue Shopping Button"
Quote:
Try change in "cart.php" code for universal solution "Continue Shopping Button" by this: PHP Code:
This modification just add one sql query (On load the page X-cart makes 80-140 query to DB :) ). |
Re: The universal solution "Continue Shopping Button"
Thanks so much Yurij. Works like a charm!
|
All times are GMT -8. The time now is 02:59 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.