| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
The universal solution "Continue Shopping Button" | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#51
|
|||||||
|
|||||||
![]() 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:
__________________
X-Cart Gold version 4.1.9 PS: This is what part of the alphabet would look like if Q and R were eliminated. |
|||||||
#52
|
|||||||||
|
|||||||||
![]() Quote:
What should happen if the transition to the cart was made from the page - Manufacture, search or etc.? |
|||||||||
#53
|
|||||||
|
|||||||
![]() 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:
__________________
X-Cart Gold version 4.1.9 PS: This is what part of the alphabet would look like if Q and R were eliminated. |
|||||||
#54
|
|||||||
|
|||||||
![]() 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
__________________
Cool. X-Cart v 4.1.8 (Live Site - Slowly dying) X-Cart v 4.1.11 (In Development- Being born) Joomla 1.5.6 + X-cart 4.1.11 Integration complete ![]() |
|||||||
#55
|
|||||||
|
|||||||
![]() Great job. Thank you so much for sharing. Is it any chance to send customers back into root directory instead of subcategory?
Many thanks
__________________
Tanya x-cart version: 4.1.7 4.1.9. 4.2 |
|||||||
#56
|
|||||||||
|
|||||||||
![]() Quote:
Try change in "cart.php" code for universal solution "Continue Shopping Button" by this: PHP Code:
|
|||||||||
#57
|
|||||||
|
|||||||
![]() 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
__________________
Version 4.4.3 Gold mod illiterate and mostly confused |
|||||||
#58
|
|||||||
|
|||||||
![]() 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.
__________________
xcart 4.18 on linux |
|||||||
#59
|
|||||||||
|
|||||||||
![]() 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 ![]() |
|||||||||
#60
|
|||||||
|
|||||||
![]() Thanks so much Yurij. Works like a charm!
__________________
Version 4.4.3 Gold mod illiterate and mostly confused |
|||||||
|
|||
X-Cart forums © 2001-2020
|