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.