swissup/module-breeze-amasty-shopby

Amasty Improved Layered Navigation integration with Breeze Frontend

Installs: 223

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:magento2-module

1.1.2 2023-10-13 07:51 UTC

This package is auto-updated.

Last update: 2024-04-13 08:47:53 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