swissup/module-breeze-amasty-shopby

Amasty Improved Layered Navigation integration with Breeze Frontend

Installs: 1 041

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:magento2-module

1.2.3 2024-07-26 10:29 UTC

This package is auto-updated.

Last update: 2024-10-28 09:06:01 UTC


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