View Single Post
  #354  
Old 03-30-2005, 09:00 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

For users of 4.0.13 there's an update needed for ezUpsell.

The cart.php code is different.

Open cart.php

Find:
Code:
# # Redirect # if($mode=="add" and $productid) { if(!empty($active_modules['SnS_connector'])) { func_generate_sns_action("AddToCart", $productid); } if($config["General"]["redirect_to_cart"]=="Y") { func_header_location("cart.php"); } else{ if(!empty($HTTP_REFERER)) { func_header_location($HTTP_REFERER); } else { func_header_location("home.php?cat=$cat&page=$page"); } } } elseif (!empty($is_sns_action)) {

REPLACE with:

Code:
# # Redirect # if($mode=="add" and $productid) { if(!empty($active_modules['SnS_connector'])) { func_generate_sns_action("AddToCart", $productid); } #if($config["General"]["redirect_to_cart"]=="Y") { # func_header_location("cart.php"); #} else{ # if(!empty($HTTP_REFERER)) { # func_header_location($HTTP_REFERER); # } else { # func_header_location("home.php?cat=$cat&page=$page"); # } #} if($mode=="add" and $productid) { func_header_location("added.php?cat=$cat&productid=$productid&amount=$amount"); } } elseif (!empty($is_sns_action)) {
Reply With Quote