X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   'continue shopping' = return to last category or item (https://forum.x-cart.com/showthread.php?t=27923)

burtsTechie 01-10-2007 09:23 AM

'continue shopping' = return to last category or item
 
Anybody have the continue shopping button in the cart return the customer to the last item they viewed, or even better the last category they viewed?

Does x-cart store this information and it is easy to access?

balinor 01-10-2007 09:50 AM

Re: 'continue shopping' = return to last category or item
 
Take a look in the Completed Custom Mods forum, or do a search for 'Continue Shopping'. Lots of options.

burtsTechie 01-10-2007 11:56 AM

Re: 'continue shopping' = return to last category or item
 
Thanks - I find searching through these forums a real skill, one I obviously haven't mastered!

I found this thread (http://forum.x-cart.com/showthread.php?t=873), but can't get it to work in 4.13. I'm trying to use xgard's code (http://forum.x-cart.com/showpost.php?p=100243&postcount=37) and I get a blank page when I update config.php.

Has there been a major change to in 4.1x that makes this code crusty and useless? Here's the code that I'm using:

Code:

x_session_register("last_cat");
x_session_register("last_productid");

if($HTTP_GET_VARS['cat'] != "")
{
  $last_cat = $cat;
}

if($HTTP_GET_VARS['productid'] != "")
{   
  $last_productid = $productid;
}

$smarty->assign("last_productid", $last_productid);
$smarty->assign("last_cat", $last_cat);


Any suggestions, or do you know of other mods that are more relevant?


All times are GMT -8. The time now is 07:21 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.