View Single Post
  #36  
Old 06-19-2005, 07:59 PM
 
extreme extreme is offline
 

Member
  
Join Date: Jun 2005
Posts: 28
 

Default

Not sure if anyone else had problems implementing elomibao's code, but just in case... here is what I eventually got it working as....

In cart.php, the redirect section should end up like this:

Code:
# # Redirect # if($mode=="add" and $productid) { if($config["General"]["redirect_to_cart"]=="Y") { if ($mode == "added") $smarty->assign("cshopping","1"); func_header_location("cart.php?mode=added"); } else{ if(!empty($HTTP_REFERER)) { func_header_location($HTTP_REFERER); } else { func_header_location("home.php?cat=$cat&page=$page"); } } }

and further down, the top line in this block needs to be added so you end up with:

Code:
if ($mode == "added") $smarty->assign("cshopping","1"); if ($mode == "checkout" || $mode == "auth") { $smarty->assign("checkout_step",$checkout_step); $smarty->assign("total_checkout_steps",$total_checkout_steps); }

then the tpl mods as previously posted.
__________________
X-Cart version 4.1.10 (upgraded painfully from 4.0.18.)
Reply With Quote