You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want, you can use our fork https://github.com/groomershop/module-full-breadcrumbs that has that fixed. Beware, that fork changes a bit the way the breadcrumbs template looks and behaves ; it assumes that you use theme-creativeshop . If you don't, you'll have to tweak the breadcrumbs.phtml and maybe move the <block name="full_breadcrumbs" /> somewhere else in your catalog_product_view.xml .
P.S. I think whether it needs to be changed or not might depend on your store setting. Like, there's this setting in magento, that controls whether the product's categories contains all its' categories' ancestors; or just the deepest children? I'm not expert in magento, so I'm not sure, but just leaving this as a side comment.
Activity
jtomaszewski commentedon Feb 6, 2021
Same here.
$product->getCategoryIds()
returns only the last category somehow. Magento 2.4.1 . Wondering how it can be fixed?jtomaszewski commentedon Feb 6, 2021
OK, I've found the fix. The code for loading categories need to looks like this:
If you want, you can use our fork https://github.com/groomershop/module-full-breadcrumbs that has that fixed. Beware, that fork changes a bit the way the breadcrumbs template looks and behaves ; it assumes that you use theme-creativeshop . If you don't, you'll have to tweak the
breadcrumbs.phtml
and maybe move the<block name="full_breadcrumbs" />
somewhere else in yourcatalog_product_view.xml
.P.S. I think whether it needs to be changed or not might depend on your store setting. Like, there's this setting in magento, that controls whether the product's categories contains all its' categories' ancestors; or just the deepest children? I'm not expert in magento, so I'm not sure, but just leaving this as a side comment.
ref: Use the default breadcrumbs template that is used in theme-creat…