OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Deleting products from cart on checkout_shipping.php
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > General Support
flom
Hi,

I combined "Country Based Shipping" with "Get 1 Free". G1F puts a free product into the cart. The problem I have is that customers cannot buy products which have a free product that cannot be delivered into their country. They also cannot delete it from the cart as it is added automatically again. So I want to offer that they can remove the free product(s) on the checkout_shipping.php.

I tried to doing it with this command:

CODE
$cart->remove($order->products[$i]['id']);


Unfortunately it does not work. Do you know why? How can I remove products (with a link) in checkout_shipping.php?

greets
FloM
flom
I did not think this is such a heavy question. Unfortunately this is urgent and I also got no answer in the german forums. sad.gif Please let me know any ideas.
flom
Isn't this the oscommerce forum? Come on guys. wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.