Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding a function into delete from basket


gazzzzzza

Recommended Posts

I need to run some code when the shopping basket is updated and an item is deleted from the basket. I have identified that I need to modify "includes/classes/shopping_cart.php" but I am not sure exactly where the deletion takes place! I only want my code to run when an item is totally removed from the basket, not when they alter the quantity.

 

Also, I need to grab the "customers_basket_id" for the item that is being removed so I can use this in my query. The shopping_cart.php file uses the variable list $key but I am not exactly sure how this links in with the "customers_basket_id"....

 

Any ideas anyone?

I'm sure this is all quite straightforward but I am still struggling....

 

any help will be much appreciated :D

always here to offer some useless advice....

Link to comment
Share on other sites

thats the one

thanks muchly

 

i got the customer basket id by using the product id and the customer id to select cbid from customers_basket table

 

:D

thanks again for your help...it was simple really..i was right !!!

always here to offer some useless advice....

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...