• Resolved phirefly

    (@phirefly)


    When vendor searches using category dropdown search with autocomplete / autosuggest, only the absolute/exact match is displayed. I’m trying to figure out how to also display the hierarchal categories for the search term (for my store, I mainly want to include children…but other users may prefer parents/full hierarchy).

    eg.
    A vendor wants to add Steak (beef) to their store. Hierarchy is as follows;

    Groceries
    – Meat
    – – Chicken
    – – Beef
    – – Turkey

    If Vendor searches ‘meat’, we would like to also display the child/subcategories (Chicken, Beef, Turkey) in the search results….because possibly they are not aware that ‘beef’ category exists (and it is the preferred/accurate category).

    Or even just display all related hierarchy – parents & children (this might be useful for other types of stores eg clothing whereby ‘trousers’ could be a child in Mens, Women, Children).

    If anyone has any ideas about how to do this or useful links please let me know.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @phirefly ,

    Are you trying to refer to the category selection on the product add/edit page?

    The category selection already show the categories in parent > child structure on those pages – https://prnt.sc/tkkyea

    Can you please share a screenshot so that I can understand the query properly?

    Thank you ??

    Thread Starter phirefly

    (@phirefly)

    @rur165

    In your screenshot, you search for ‘men’ and it shows the categories that contain the string ‘men’ (ie. Mens, Womens are displayed). This search match is normal and it is the same experience for us ??

    However, what we want is to display the search term AND the related child hierarchy.

    I don’t know what the hierarchy is for your categories, so I cannot use it as an example. However, here is a simple example.

    eg.
    A vendor wants to add Steak (beef) product to their store.

    Category hierarchy is as follows;

    Groceries
    – Meat
    – – Chicken
    – – Beef
    – – Turkey

    Currently, if Vendor searches for category ‘meat’, only ‘meat’ will be displayed.

    What we what:

    For search/autocomplete, we would like to display the searched term AND child hierarchy categories.

    ie. If Vendor searches ‘meat’, we would like to display ‘meat’ and also display the child/subcategories (Chicken, Beef, Turkey) in the results.

    Reason / Why?
    – so the Vendor will see the child categories and can select the more accurate category.

    Hello @phirefly ,

    Thanks for clarifying. I understand your point now.

    However, the search was meant to be used to look for a specific category. At first, they get the chance to scroll through all categories if they want to know if the category is available or not. But yes, the use case you described can also be useful.

    I have just gone through the implementation and I regret to say there is no direct way that can change this behavior. We have used Select2 4.0.3 solution to make these searches. You can check their documentation to explore more and get your desired solution.

    Regards,
    Rashed

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Vendor > Add Product: display hierarchical categories in autocomplete (child)’ is closed to new replies.