View Single Post
  #1  
Old 01-24-2011, 12:13 PM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default 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:
func_display('customer/home.tpl', $smarty);

add the following code lines:

Code:
define('STORE_NAVIGATION_SCRIPT', 'Y'); $smarty->assign('navigation_script', 'product.php?productid=' . $productid);

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
Reply With Quote