Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do i make shopping cart empty? 
 
alesto
Guru
 
Total Posts:  624
Joined:  2009-03-21
 

How do i make shopping cart empty via php function?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Adjustware
Guru
 
Avatar
Total Posts:  654
Joined:  2009-05-11
 

You’d better post such a question into the “Programming Questions” forum.

Mage::getSingleton('checkout/session')->clear();
Hope it helps
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top