View Single Post
  #25  
Old 01-30-2005, 07:28 PM
 
elomibao elomibao is offline
 

Member
  
Join Date: Sep 2004
Posts: 24
 

Default

jkirkpatrick,

In cart.php, look for this chuch of code:

Code:
# # Redirect # if($mode=="add" and $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"); } } }

replace:
Code:
func_header_location("cart.php");

with:
Code:
func_header_location("cart.php?mode=added");

Jon,

Interesting solution. You don't get redirected to a cart but a page that allows you to continue shopping or checkout. There are advantages and disadvantages to this. It's all up to them what to implement. Nice work.
__________________
X-Cart Pro 4.0.5
Fedora Core 2
Apache 2.x/PHP 4.x
MySQL 3.x
Reply With Quote