This extension will add the ability to show one of your root categories in a sidebar. The root category can be selected from the Magento2 admin config page.
- Include the repository:
composer require sebwite/magento2-category-sidebar
- Enable the extension:
php bin/magento --clear-static-content module:enable Sebwite_Sidebar
- Upgrade db scheme:
php bin/magento setup:upgrade
- Clear cache
- Download zip file of this extension
- Place all the files of the extension in your Magento 2 installation in the folder
app/code/Sebwite/Sidebar
- Enable the extension:
php bin/magento --clear-static-content module:enable Sebwite_Sidebar
- Upgrade db scheme:
php bin/magento setup:upgrade
- Clear cache
- Select the root category you want to use from the config page from the admin panel
- You should implement the block
Sebwite\Sidebar\Block\Sidebar
in your theme to make this extension work. Example<block class="Sebwite\Sidebar\Block\Sidebar" name="category-sidebar" template="Sebwite_Sidebar::sidebar.phtml" />