Product categories
-
Hi, I read some topics about getting product category, for example, in product page. I know that you can’t directly take product category like this $product->category. Maybe someone has a solution how to do that with your own code? What I see in the database, everything looks clear. Products and categories have their own tables and there’s a separate table with category id and product id. Also, there’s a relationship described in one of php files of bagisto. Anyone have an idea how to add this functionality? I tried to do it in basic laravel structure with product and category relationship, but still no luck.
Thank you.
-
Yes both are separated so that on deletion only linking should break rather then deleting anything,