Skip to content

Static Caching with Cart #974

Closed Answered by duncanmcclean
sattyframework asked this question in Help
Discussion options

You must be logged in to vote

So my question is, is it possible to retrieve the current cart from my controller when I make the API call, rather than passing it through my vue template?

Yes, there's a "cart index" endpoint you can use to get the customer's current cart. The URL is /!/simple-commerce/cart

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sattyframework
Comment options

Answer selected by sattyframework
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants