gil-- / gatsby-starter-shopifypwa

💚:shopping_cart:💚 Bodega is a Shopify PWA using Gatsby JS + Netlify CMS
https://bodega.netlify.com
MIT License
103 stars 9 forks source link

WIP: Cart #43

Closed gil-- closed 5 years ago

gil-- commented 5 years ago

Basic Cart functionality:

Next Phase

gil-- commented 5 years ago

Going ahead and merging this. Will follow up with a phase 2 that has additional basic core functionality. Will do a phase 3 later on with advanced features (gift wrapping, shipping rates, refactor into reusable component (minicart), etc.)

tijsluitse commented 5 years ago

Hi @gil-- Thanks for your amazing starter. I was wondering if you already have a solution to clear the checkout session (and current cart) when the user completed the checkout? 🙏🏻

gil-- commented 5 years ago

@tijsluitse I think the first method I'd try is by clearing it whenever a user lands on the checkout success page, assuming checkout redirects back to the PWA on successful checkout.

Any other option would be much more complex.

tijsluitse commented 5 years ago

Yes indeed, that's what I have done now. Thanks for your reply man!