Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

'continue shopping' = return to last category or item

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-10-2007, 09:23 AM
 
burtsTechie burtsTechie is offline
 

Member
  
Join Date: Sep 2006
Posts: 20
 

Default '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?
__________________
X-Cart Version: 4.15 (in development)
Reply With Quote
  #2  
Old 01-10-2007, 09:50 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-10-2007, 11:56 AM
 
burtsTechie burtsTechie is offline
 

Member
  
Join Date: Sep 2006
Posts: 20
 

Default 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?
__________________
X-Cart Version: 4.15 (in development)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:33 PM.

   

 
X-Cart forums © 2001-2020