3

Can anyone state what is the difference between

Mage::getSingleton('checkout/session');

and

Mage::getSingleton('checkout/cart');
6
  1. Mage::getSingleton('checkout/cart') is Shopping cart model class.It's create Varien_Object. Mage::getSingleton('checkout/session') is session class with 'checkout' namespace. This stores information related to the quote, guest or not (cart totals, items, checkout progress)

  2. Mage::getSingleton('checkout/cart') class depends on Mage::getSingleton('checkout/session') when adding/updating/deleting product.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.