This module fixes the issue with breadcrumbs on the product page not showing categories if the category is set to "Show in Menu = No". This problem was originally discussed here.
The solution was found on Magento Stack Exchange, provided by Nuwaus.
This module wraps the solution into a Magento 2 module for easier access and deployment. It extends the default Magento breadcrumbs functionality to ensure categories are displayed in the breadcrumbs even when they are not shown in the menu.
This module is compatible with Magento versions 2.2.4 to 2.4.6.
-
Clone the repository or download the module:
git clone https://github.com/your-repository-url/Debuglabs_Breadcrumbs.git
-
Copy the module files to your Magento 2 installation:
cp -R Debuglabs_Breadcrumbs app/code/Debuglabs/Breadcrumbs
-
Enable the module:
php bin/magento module:enable Debuglabs_Breadcrumbs php bin/magento setup:upgrade php bin/magento cache:clean
-
Deploy static content:
php bin/magento setup:static-content:deploy
After installation, the module will automatically fix the breadcrumbs issue on the product pages. No further configuration is required.
For any issues or questions, please contact the creator Sebastijan Placento at [email protected].
This project is licensed under the MIT License. See the LICENSE file for details.