Will Strohl
isn't it funny how the things you think are quick/easy go south? Thank you for more appropriately tagging our post. 🙂 We weren't sure where to place this since it crossed lines between catalog management and development. As an FYI, even though I'm subscribed to comments on this thread and other threads, I never seem to receive any notifications by email and have to come back and check.
Basically, it might be beneficial for developers to have the ability to choose which catalog hierarchy to display in the views, especially when a product is in multiple categories. It may be overkill to do this in the management interface, so perhaps the Hotcakes.Modules.Core.Models.BreadCrumbViewModel and Hotcakes.Modules.Core.Models.ProductPageViewModel could contain all the category hierarchies that a product is in rather than arbitrarily choosing only one versus another. That way, we could add logic to say "show the apparel tree" instead of the "collections tree". We're not even sure how the "default" hierarchy is chosen (e.g. select top 1, order by).
Alternatively, perhaps a default top-level category can be chosen when adding a product to multiple category trees. Whichever you feel would be the easiest to implement.
From our perspective since products may be in more than one category tree, having the ability to choose the one that appears in the breadcrumbs and the product detail page would be ideal.
Edited by user
2021-12-08T21:54:59Z
|
Reason: Not specified