How to define breadcrumbs for products with several categories?

I developed an e-commerce system in which I have products that can belong to several categories. This works well for searching and browsing and makes it easier for users to find products.

However, I also implemented patches on the product page, and I don’t know how to determine which category the product should show, since it can be any of the categories in which the product is located. Ideally, I would prefer not just to select a category randomly.

Does anyone have any ideas? I would be grateful for the help!

Thanks Nico

+4
source share
4 answers

How about the fact that globally weighted categories are based on what you want to increase at this time, or β€œlocal” scales in product categories based on what is more applicable to it. In any case, if there is a conflict, their scales can resolve it.

I would go for the second. There is always a way to choose a category that is more suitable for the product.

+4
source

Since your categories are hierarchical, I suggest that if a particular product belongs to several categories, its summary should contain the root category first, and then subcategories, the more the user narrows the navigation, the more subcategories are added to the breadstick.

0
source

You must make several lines of the palette (path). Each path will represent one of the categories in which the product is located. You must specify as many paths as the number of product categories. This will give the customer a good choice.

0
source

You can use the closure table to represent your relationship in many ways. In this closing table, you can specify the path length and column for the palette. Therefore, each product will have as many breadings as there are hierarchical ancestors.

You can find more detailed information about answers and resources at Bill Karvin, first of all , MySQL Closure Table Hierarchical Database - How to display information in the correct order and http://www.slideshare.net/billkarwin/models-for-hierarchical -data (go to slide 40).

0
source

All Articles