gazzzzzza Posted May 26, 2004 Posted May 26, 2004 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....
ryanf Posted May 26, 2004 Posted May 26, 2004 function remove to take stuff out of the cart, not sure about the id If I was crafty, this would be a funny signature.
gazzzzzza Posted May 27, 2004 Author Posted May 27, 2004 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....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.