0

EE: 6.3.4

I am aware that Expresso Store is discontinued. I would like to be able to get the contents of the user's current cart in PHP. The answer here does not work (ee()->store_cart->contents()).

I asked the same question for a different cart addon here. If there is a similar solution, I would really appreciate being pointed in the right direction.

Thanks so much!

1 Answer 1

1

I believe you could use ee()->store->orders->get_cart()->toTagArray()

2
  • Yep, that's the one. Is there any documentation on this?
    – Shayne
    Jun 14, 2022 at 17:38
  • 1
    not that I know of; I had to look in the code I had on hand to find that call tbh
    – Eric Lamb
    Jun 14, 2022 at 19:12

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.