Quote:
Originally Posted by wjbrewer
You need to remove the space before the product number.
|
Quote:
if ($productid<>%ID%)
func_header_location($xcart_catalogs['customer']."/cart.php?mode=add&productid=%ID%&amount=1");
}
|
Bill - I cannot thank you enough for solving that one for us!
Just 2 questions:-
The most important one is how can you limit the free product qty to 1 item only regardless of how many products are put in the cart (the code above adds a free item every time a product is added but our store is giving a free gift per order made not per product.
Is there code that could be added that checks that the cart has a product in it (other then the free one). At the moment if someone puts a product in the cart the code above adds the free item (or whatever item specified) to the cart, but if the original item is then deleted from the cart , this free item remains there. Is there a bit of code that can check for this? As it is the item I am specifing is a free item and the cart will not allow a checkout with a subtotal of $0.00 but if this code was straight forward it would be nice.
Many thanks
Simon