swissup/module-breeze-amasty-shopby

Amasty 改进的 Breeze 前端分层导航集成

安装: 917

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 3

分支: 0

开放问题: 0

语言:JavaScript

类型:magento2-module

1.2.3 2024-07-26 10:29 UTC

This package is auto-updated.

Last update: 2024-09-26 10:46:31 UTC


README

所需补丁

vendor/amasty/shopby/view/frontend/templates/layer/filter/category/labels_folding.phtml

替换

<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>

<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>

安装

composer require swissup/module-breeze-amasty-shopby
bin/magento setup:upgrade --safe-mode=1