E-commerce websites have become increasingly popular due to their convenience and accessibility. They allow users to buy goods over the internet and have them delivered. In this tutorial, you will learn how to build an e-commerce website using SvelteKit and Strapi CMS.
Another thing I wonder is why you choose to have the userId and productId as text fields in cartItem collection instead of creating a relation to user and product?
I stuggled to sync product data between Strapi and my frontend. What helped was setting up webhooks in Strapi to trigger updates in real time. Also, for handling payments smoothly without writing tons of backend code, I integrated payinsider.com, which worked really well with my SvelteKit setup and didn’t get in the way of managing content through Strapi.