Product categories #914
-
Hi, I am trying out simple commerce on my development environment. I have a question. In GitHub issues I see product categories are mentioned. But I do not see an option to add a category to a product via the CP. What is the correct way to an add a product to a category? Or is this not part of simple-commerce and should I change the blueprint for instance? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hello! Product Categories only existed very early on in Simple Commerce's existence, they've since been removed. As products are just normal entries, you can create a taxonomy for product categories then link them up that way. |
Beta Was this translation helpful? Give feedback.
-
Actually - I may have been going in the wrong direction. Statamic is still a bit new to me. You mentioned taxonomies before. By using taxonomies - and combining them - I now implemented a collection filter with a couple of categories. So instead of filtering on Product Variants I am going to filter on one or more taxonomies. taxonomy:categories="{get:categories}" I combined your sort mechanism with product categories and I think this is turning out to be quite a flexible solution that I can keep extending with different taxonomies. To answer your question: It was my intention to use the Statamic Eloquent Driver. And then use a separate model for querying and returning json to some kind of javascript filter implementation. But I am not going for that solution at this time. Thanks for you help and input. Very helpful. |
Beta Was this translation helpful? Give feedback.
Hello!
Product Categories only existed very early on in Simple Commerce's existence, they've since been removed.
As products are just normal entries, you can create a taxonomy for product categories then link them up that way.