cancel
Showing results for 
Search instead for 
Did you mean: 

Delete item from cart using querie

SOLVED

Delete item from cart using querie

Hello,

 

I need to delete an item from the cart, but the default methods of magento doesn't works.

 

Do anyone know some query?

Can anyone tell me in wich table is the itemId stored?

 

Thanks for any help

 

Regards

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Delete item from cart using querie

ok, i finally find the answer

 

$write = Mage::getSingleton('core/resource')->getConnection('core_write');

$write->delete("sales_flat_quote_item", "item_id = $_itemId");

I hope it can help others

 

regards

View solution in original post

1 REPLY 1

Re: Delete item from cart using querie

ok, i finally find the answer

 

$write = Mage::getSingleton('core/resource')->getConnection('core_write');

$write->delete("sales_flat_quote_item", "item_id = $_itemId");

I hope it can help others

 

regards