Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I remove a specific item from cart using code


Jaguar

Recommended Posts

Posted

How do I go about removing items from the shopping cart using code ?

 

I know that a function exists in the shopping_cart.php class file called remove(products_ID) and another function called in_Cart(products_ID) exists, but I have no idea how to use them and if these are the right functions to consider for this task.

 

What I am thinking here is ...

---to add a field to the products table that indicates whether it is a premium (givaway) item.

---The database field would =1 if it was and 0 if it was not.

---I think that I would also need to add a field to indicate what the premium item was connected to.

 

I want to be able to remove any products that are set to 1 and are connected to a non-premium item that does not exist in the shopping cart.

 

Any Ideas on how to do this?

Loren

 

 

The great thing about beating your head against the wall is that it feels SO GOOD when you stop!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...