swissup / module-breeze-amasty-shopby
Amasty Improved Layered Navigation integration with Breeze Frontend
Installs: 1 073
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Language:JavaScript
Type:magento2-module
README
Required patches
vendor/amasty/shopby/view/frontend/templates/layer/filter/category/labels_folding.phtml
Replace
<script> // initialize component by emulation behaviour of x-magento-init but without waiting of DOM load require([ 'mage/apply/main' ], function (main) { main.applyFor( '.am-filter-items-<?= /* @noEscape */ $filterCode ?>', { "mode": "folding", "collapseSelector": "<?= $block->isTopNav() ? '.amasty-catalog-topnav' : '.sidebar' ?>" }, 'amShopbyFilterCollapse' ); }); </script>
with
<script type="text/x-magento-init"> { ".am-filter-items-<?= $filterCode ?>": { "Amasty_Shopby/js/components/amShopbyFilterCollapse": { "mode": "folding", "collapseSelector": "<?= $block->isTopNav() ? '.amasty-catalog-topnav' : '.sidebar' ?>" } } } </script>
Installation
composer require swissup/module-breeze-amasty-shopby bin/magento setup:upgrade --safe-mode=1