Sneruall / soloswimnl

Webshop for a project that focuses on offering waterproof swimming schedules for in the pool. Using React, NextJS, NodeJS, Stripe, MongoDB and TailwindCSS.
https://www.soloswim.nl
0 stars 1 forks source link

Change product model to work with variants #85

Open Sneruall opened 6 months ago

Sneruall commented 6 months ago

Product e.g. techniek bundel and then product variants (beginner, semi, gev).

Product heeft maar paar attributes (zie CT), waaronder een array met product variants (minstens 1 variant per product).

En dan ook attributes daarheen halen, zoals inhoudsopgave, benodigdheden, voorraad, prijs, id, afbeeldingen etc...

Uitdenken url (werken met query parameters of slug?)

product type (zwemschema, accessoire) https://docs.commercetools.com/api/projects/productTypes (note attributes are defined on this level, values are added on variant level)

product (kracht zwemschema, duur zwemschema, ... , bc leren zwemmen schema, pullbuoy) https://docs.commercetools.com/api/projects/products

product variant (kracht zwemschema voor gevorderden, duur zwemschema voor beginners, bc leren zwemmen 25m bad editie, pullbuoy) https://docs.commercetools.com/api/projects/products#productvariant