Category: Magento

Topics focus on Web Developments, Programming, Database, Digital Marketing Tutorials, Code Snippets, SEO, Social Media Marketing and Inspirational articles.

How to delete shopping cart items for customers in magento

Here, We will explain How to delete shopping cart items for customers in magento? The code for delete shopping cart items for logged in customer: 1 2 3 4 5 6 7 8 9 $cart = Mage::getSingleton(’checkout/cart’); $quoteItems = Mage::getSingleton(’checkout/session’) ->getQuote() ->getItemsCollection();   foreach( $quoteItems as $item ){ $cart->removeItem( $item->getId() ); } $cart->save();$cart = Mage::getSingleton(‘checkout/cart’); […]

Read More

How to Change the Order Number in Magento

1

Here, we have written article for How to Change the Order Number in Magento. When moving to Magento, some people might want to change the default order number 000000001 to some other number – either fooling the customer into thinking this is a very popular shop, or when migrating from another webshop to Magento. Here’s […]

Read More

How to get shopping cart items and totals in magento

Here, We will explain How to get shopping cart items and totals in magento? The code for getting all items in shopping cart: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 // retrieve quote items collection $itemsCollection = Mage::getSingleton(’checkout/session’)->getQuote()->getItemsCollection();   // get array of all items […]

Read More

Pin It on Pinterest