3

Can anyone state what is the difference between

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

and

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

1 Answer 1

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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