How to display product category - Geekshop

iambuxer

Feb 1st, 2018 03:35 PM

Hello.

I'm trying to make a breadcrumb navigation in the product page and I would like to know how to display the category of the product.

https://i.imgur.com/RuAoouE.jpg

I put the Home and product name but don't know how to display category.

Thanks.

iambuxer

Feb 4th, 2018 11:46 AM

@mark @devdojo could this be easy to achieve?

mark

Feb 5th, 2018 05:15 PM

The only "easy" way is to overwrite the view and then overwrite the breadcrumb view for the product view. However this requires this pullrequest is merged and released first and then you will have to update the Voyager package in your Geekshop application.

iambuxer

Feb 5th, 2018 05:39 PM

Thanks @mark

I thought it was something little like {{ $category->name }} but it seems to be kinda hard for me to do at the moment. I hope Tony implements it in future versions of Geekshop.

Thanks!

mark

Feb 7th, 2018 08:51 AM

It would more likely be something like $product->category->name.

rausch-evelyn

Dec 11th, 2019 09:34 AM

When you are setting up a store, normally you’d select the third option, products and categories/subcategories. This implies that visitors can either select products right from the home page or refine their search by clicking through to a product category archive DGCustomerFirst

Report
1
toddgurley

Dec 23rd, 2021 07:09 AM

When setting up a store, ordinarily, you'd select the third choice, items, and classes/subcategories. This suggests that guests can either choose items right from the landing page or refine their pursuit by navigating to an item class document dgcustomerfirst com survey