php - How to delete all shopping cart items of all customers in Magento? -
I want to remove all shopping cart items (added products in the cart) from all Magento customers.
How can I do this?
In detail : - Suppose, I have 10 registered customers in my shop. The item (product) may be added to the car. I want to clear all items added to the cart for all 10 registered customers. My first guess would be something like this, The cart item is stored as part of the 'quote'. The look may slow down among all these, doing so is fast in SQL, but not secure.
$ items = mage :: getResourceModel ('Sales / Quote_tam_collections'); Forex Currency ($ item $ item) {$ item- & gt; Remove (); }
TRUNCATE `sales_flat_quote_item`;
Comments
Post a Comment