Is there a cart object for Expresso:Store? Something like "$this->EE->cartObject" where I can access the items that is in the cart? The purpose of this is to find out which category the item is in and if it is in a category that does not ship to a country it will display a warning message and blank out the 'confirm purchase' button.

Regards, Rin

1 Answer 1


Yes, you can access it like this:


There are also many extension hooks you can use if you want to validate the cart when it is updated.

  • I can't seem to be able to access this via the template level, is it only for development of plugins?
    – Nekorin
    Aug 17, 2013 at 12:40
  • The cart library needs to be loaded, and from memory in templates the EE super object is accessible directly. Try ee()->store_cart->contents() as I just put above (assuming you are using EE 2.6+). Aug 17, 2013 at 17:09

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.