PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12/8/2021 5:51 PM by  Phil Perlman
Breadcrumbs / Category Name When Product is in Multiple Categories
 3 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Author Messages





Veteran Member






--
12/8/2021 3:30 PM
    Hi Folks,

    We have a customer who has multiple top-level categories (e.g. "Apparel / Pants" and "Collections / Chill"). When we add a product to multiple child categories, the breadcrumb and category name on the Product Detail page always shows "Collections / Chill" rather than the desired "Apparel / Pants".

    The product categories are manually sorted and the top-level "Apparel" category appears first, yet only the second top-level tree is shown. This is what is returned from the Hotcakes.Modules.Core.Models.BreadCrumbViewModel.Items:

    [code=javascript][
    {
    "Name":"Collections",
    "Link":"https://abc.com/products/collections",
    "Title":"Collections"
    },
    {
    "Name":"Chill",
    "Link":"https://abc.com/products/chill",
    "Title":"Chill"
    },
    {
    "Name":"Sweatpants",
    "Link":"",
    "Title":""
    }
    ]; [/code]

    Thank you for any feedback!

    --Phil
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Veteran Member






    --
    12/8/2021 3:30 PM
    Placeholder topic.
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Veteran Member






    --
    12/8/2021 3:33 PM
    I attempted to move your post from Ask Anything to Catalog Management. So, hopefully you can see and reply to this. It was not an easy thing to do for something. Anyhow...

    Are you saying that you wish to control or otherwise change how the breadcrumbs are being added to the view for products in multiple categories? If yes, please provide a summary of the current customer journey you have. This will help us all better understand what is currently happening and how to maybe adjust to meet your needs.
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    New Member






    --
    12/8/2021 5:51 PM
    [userlink]Will Strohl[/userlink] 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.
    You are not authorized to post a reply.


    Loading
    • Sign-up for the Hotcakes Community Newsletter: