Skip to content

Amasty Improved Layered Navigation integration with Breeze Frontend

Notifications You must be signed in to change notification settings

breezefront/module-breeze-amasty-shopby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amasty Shopby Integration

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

About

Amasty Improved Layered Navigation integration with Breeze Frontend

Resources

Stars

Watchers

Forks

Packages

No packages published