| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Continue Shopping -> Redirect to product | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Continue Shopping -> Redirect to product
Let's enable in General Settings -> Redirect customer to cart after adding a product.
If you want to come back to the product you just added to cart, after pressing Continue Shopping, do the following modifications: In XC 4.4.2 root find product.php. At the end of the file, before: Code:
add the following code lines: Code:
We can go further adding in General Settings a check box: Redirect to product page. if (redirect to cart enabled && redirect to productpage enabled) pressing Continue Shopping go back to product page Lots of information about Continue Shopping button here: http://www.getelastic.com/4-ways-continue-shopping
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
|
#2
|
|||||||
|
|||||||
Re: Continue Shopping -> Redirect to product
Hi,
Thanks for your codes. If I want to go to the current page suppose in category or in manufacturer page what will be the code for x cart pro 4.4.2 Pro? |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Continue Shopping -> Redirect to product
This is the place you should make the changes:
$smarty->assign('navigation_script', 'product.php?productid=' . $productid); that productid has associated a categoryid and a manufacturerid. Change product.php with category.php ... I don't see it relevant to go in Manufacture page after pushing continue shopping button. Quote:
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#4
|
|||||||
|
|||||||
Re: Continue Shopping -> Redirect to product
Hi,
It will not work for me... |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Continue Shopping -> Redirect to product
What did you use for replacing this 'product.php?productid=' . $productid"?
Here is what QT replied inside the bugtracker (http://bugtracker.qtmsoft.com/view.php?id=38084) ***************** As a result of discussion it was decided to implement this as follows: - customer adds a product from the home page -> it redirects him to home page - customer adds a product from the search results page -> it redirects him to the same search results (with page number and search conditions as it was before) - customer adds a product from the category page -> it redirects him to that category (page number is kept) - customer adds a product from the product details page -> it redirects him to home, category, or search results page the customer was browsing last time We do not see any reason to forward a customer to the same product page when click on the Continue shopping button. That product is already in cart. ***************** My personal opinion is X-Cart should let the administrator to decide from a few options where to redirect the customer.
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#6
|
|||||||
|
|||||||
Re: Continue Shopping -> Redirect to product
Wouldn't just replacing the onclick javascript code from
Code:
Code:
I'm sure sure what your button code is exactly in the version you are using but it worked great in 4.1.8 and I was going to edit it in my 4.4.5 test version as well to see if it works.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#7
|
|||||||||
|
|||||||||
Re: Continue Shopping -> Redirect to product
Quote:
This actually is not good as in some cases will not work as intended. For example - customer adds to cart and then logs out or session expires. Customer logs in again and XC will redirect him/her to the cart because cart is not empty (default XC behaviour). Customer hits the "continue shopping" button - using the js history function customer will be redirected back to the login screen - not good at all.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#8
|
|||||||
|
|||||||
Re: Continue Shopping -> Redirect to product
That is a very good point. Didn't think of that at all.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#9
|
|||||||
|
|||||||
Re: Continue Shopping -> Redirect to product
I am on 4.1.9 and I tried the way ADDISON mentioned here but did not work, can you please help... thanks
__________________
X-Cart DB Version: 4.1.9 GOLD Addons: Amazon skin; Fancy Categories; Magnifier (enabled); Survey (enabled); CDSEO Pro; Category SEO Map; One Page Checkout; Greet Visitor; On_Sale; |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|