commercetools / commercetools-donut

Store template for subscription based ecommerce business model
Other
11 stars 8 forks source link

Identify the product by SKU #18

Open lauraluiz opened 9 years ago

lauraluiz commented 9 years ago

As this is a single-product shop, we need to know which is this unique product we are dealing with. Currently the template is using the slug of the product as a way of identification, but slugs are localized, therefore having multiple languages might break the shop. Not a good idea.

We need some more reliable way to identify the product. Internal IDs are different in each SPHERE.IO project, so it is definitely not a good idea to use them. Our best option here is to use the SKU, since it is actually an external identifier of the product, thus let's use them!