View Single Post
  #53  
Old 09-26-2008, 03:50 PM
 
glsp glsp is offline
 

Member
  
Join Date: Dec 2007
Location: Northampton, MA
Posts: 27
 

Default Re: The universal solution "Continue Shopping Button"

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_session_register("last_cat");
$referrer $_SERVER['HTTP_REFERER'];
if (
strpos($referrer"home.php") || strpos($referrer"search.php")) {
    
$last_cat $referrer;
}
else if (!
$last_cat) {
    
$last_cat 'home.php';
}
$smarty->assign("back_url"$last_cat); 
__________________
X-Cart Gold version 4.1.9

PS: This is what part of the alphabet would look like if Q and R were eliminated.
Reply With Quote