View Single Post
  #52  
Old 03-09-2007, 08:06 AM
 
pdheady pdheady is offline
 

Advanced Member
  
Join Date: Mar 2007
Location: West Palm Beach, FL
Posts: 36
 

Default Funkydunk's add multiple items to cart redirect

This is for those folks that don't want to redirect to the cart.php page but want to be taken back to the same page they are on.

When it redirected it did not grab the cat id it was setting it to zero since the cat wasn't being posted, this will fix it. Make sure the back office admin redirect to cart is not selected. I am working on a little pop up that will show a minicart window that will allow you to continue shopping, edit cart, or checkout. I will post it when I get it working.

add_multiple_to_cart.tpl

<form action="add_multiple.php?cat={$cat}&page={$page}" method ="post" name="orderform">
<input type="hidden" name="mode" value="add">

add_multiple.php


#
# Redirect
#

if($mode=="add" and $productid) {
if($config["General"]["redirect_to_cart"]=="Y")
func_header_location("cart.php");
else
func_header_location("home.php?cat=$cat&page=$page ");
}
__________________
Xcart 4.0.19
Reply With Quote