Baroshem / nuxt-medusa

🛍️ Medusa module for Nuxt
https://nuxt-medusa.vercel.app
MIT License
130 stars 10 forks source link

docs: cart examples #18

Closed carpad88 closed 1 year ago

carpad88 commented 1 year ago

Types of changes

Description

I added some examples on the docs to manage Medusa cart initialization by using localstorage and cookies on client side, or cookies on server side.

Medusa's cart object can get very complex once users start adding products or items to it. Saving all that information in localstorage can become a nightmare. A better approach is to save only the cart_id. Later on, users can use the cart_id to retrieve the cart information using nuxt-medusa module.

This PR is related to #15.

Checklist:

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuxt-medusa ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2023 5:41am
Baroshem commented 1 year ago

Hey,

Thanks so much for this!

I will take a look in the upcoming hours and release it to the docs :)