0

enter image description here

How can I show the full breadcrumbs category path on the product page in Magento 2.3?

i want this path complete on product detail page in breadcrumbs enter image description here

3
  • can you please elaborate what you actually want to do in detail?
    – ASQ
    Commented Aug 8, 2019 at 10:06
  • i hava add a picture please check Commented Aug 8, 2019 at 10:10
  • in first picture it shows me only 2 breadcrumbs path on detail page but in second picture it show me full path in breadcrumbs that i need on detail page Commented Aug 8, 2019 at 10:12

4 Answers 4

1

Magento by default provides this functionality in M2.3.3 or greater version. When you navigate to any product using navigation(using category) it will by default show full breadcrumbs on product page(except it will not show full breadcrumbs if you directly navigate to product using url).

Please check on this demo.

You may need to use a extension to show full breadcrumbs on product page for earlier versions.

1
  • At least in Magento 2.4.3 its not as it should be.
    – Max
    Commented Nov 9, 2021 at 22:50
1

Please check with below url, its module from Eadesign which have Full path categories product breadcrumb

https://github.com/EaDesgin/magento2-full-path-category-product-breadcrumb

1
  • is this madule working fine for 2.3.2? i am getting error when i go to stroes->configuration.prnt.sc/sst6gt
    – Nafsss
    Commented Jun 3, 2020 at 7:09
1

Try This

app/code/VedoreName/ModuleName/view/frontend/layout

catalog_product_view.xml

<?xml version="1.0"?>

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="breadcrumbs" template="Magento_Theme::html/breadcrumbs.phtml" />
        <block class="Magento\Catalog\Block\Breadcrumbs" />
    </body>
</page>
0

In addition to @Msquare post. Let's say we have a configuration setting "feature/catalog_product/add_categories_to_pdp_breadcrumbs" which enables or disables category breadcrumbs at a PDP. Then we can switch between Magento default and a custom Breadcrumb. Use a following XML code:

<referenceBlock name="breadcrumbs">
    <action method="setTemplate" ifconfig="feature/catalog_product/add_categories_to_pdp_breadcrumbs">
        <argument name="template" xsi:type="string">Magento_Theme::html/breadcrumbs.phtml</argument>
        </action>
    <block class="Magento\Catalog\Block\Breadcrumbs"
                   ifconfig="feature/catalog_product/add_categories_to_pdp_breadcrumbs"/>
</referenceBlock>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.