mage2kishan/module-sale-filter-hyva 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mage2kishan/module-sale-filter-hyva

Composer 安装命令:

composer require mage2kishan/module-sale-filter-hyva

包简介

Panth Sale Filter — Hyvä compatibility module. Ships Alpine.js + Tailwind templates and the Appearance admin group for the "On Sale" layered navigation filter. Install alongside mage2kishan/module-sale-filter.

README 文档

README

Magento 2 Sale Filter Hyva: On Sale Layered Navigation for Hyva Themes

Magento 2.4.4 - 2.4.8 PHP 8.1 - 8.4 Hyva Live Demo & Details Packagist Upwork Top Rated Plus Website

Give Hyva shoppers a fast, native "On Sale" filter in the layered navigation sidebar. Panth Sale Filter Hyva adds an Alpine.js and Tailwind template for the sale filter, with no jQuery and no RequireJS. One admin toggle controls whether the filter renders open or collapsed on first paint.

Product page: kishansavaliya.com/magento-2-sale-filter-hyva.html

Quick Answer

What is Panth Sale Filter Hyva? It is the Hyva-native storefront layer for the Panth Sale Filter module. It replaces the default Luma/Knockout template with an Alpine.js and Tailwind version so the "On Sale" filter looks and behaves like the rest of your Hyva sidebar.

What does it add to my store?

  • A native Hyva template for the "On Sale" layered navigation filter, built with Alpine.js and Tailwind, with no jQuery.
  • An Appearance (Hyva) admin group under Sale Filter configuration with an "Expanded By Default" toggle.
  • FPC cache key variation on the expanded/collapsed toggle, so admin changes bust the cached block correctly.

Which themes are supported? Hyva only. The core module mage2kishan/module-sale-filter covers Luma storefronts.

What does it need? Magento 2.4.4 to 2.4.8, PHP 8.1 to 8.4, Hyva 1.3+, the free mage2kishan/module-core package, and mage2kishan/module-sale-filter (the core module with the indexer, filter logic, and Luma template).

Need Custom Magento 2 Development?

Get a free quote for your project in 24 hours for custom modules, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.

Get a Free Quote

Kishan Savaliya

Top Rated Plus on Upwork

Hire on Upwork

100% Job Success • 10+ Years Magento Experience Adobe Certified • Hyva Specialist

Panth Infotech Agency

Magento Development Team

Visit Agency

Custom Modules • Theme Design • Migrations Performance • SEO • Adobe Commerce Cloud

Visit our website: kishansavaliya.com  |  Get a quote: kishansavaliya.com/get-quote

Table of Contents

Who Is It For

  • Hyva storefronts that already use the Panth Sale Filter core module and need a matching Alpine.js template for the sidebar.
  • Developers building Hyva stores who want the "On Sale" filter to look native, not like a Luma block dropped into a Hyva page.
  • Merchants who want to control whether the sale filter renders open or collapsed without editing template files.
  • Stores running Magento Open Source or Adobe Commerce on Hyva 1.3+, where Knockout and RequireJS templates are not a good fit.

Key Features

Native Hyva Template

  • Alpine.js and Tailwind markup for the "On Sale" layered navigation filter, matching the style of every other Hyva sidebar filter.
  • No jQuery, no RequireJS, no Knockout loaded by this module on the frontend.
  • Registered at Panth_SaleFilter::layer/filter/sale.phtml so the active theme picks it up automatically when Hyva is detected.

Admin Appearance Toggle

  • Expanded By Default setting under Stores → Configuration → Panth Extensions → Sale Filter → Appearance (Hyva).
  • Default is Yes (expanded), so the filter is open on first paint for new installs.
  • Store-scoped: you can set a different state per store view.

Full Page Cache Aware

  • The filter renderer varies its FPC cache key on the expanded/collapsed setting, so changing the toggle in admin clears the right cached blocks without a full cache flush.

Built on the Core Module

  • All indexer logic, filter model, URL params, label config, discount-source switches, and Luma templates stay in mage2kishan/module-sale-filter. This module adds only the Hyva layer.
  • Clean DI: one block class (FilterRenderer) injected through the layout, no ObjectManager.

Screenshots

Storefront sidebar

Hyva storefront sidebar

Admin - configuration

Admin configuration (Appearance section, Hyva group)

Admin - live demo

Admin configuration demo

Indexer registration (inherited from the core module)

Index Management

Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 to 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
Hyva Theme 1.3+
Required: core module mage2kishan/module-core (free)
Required: sale filter mage2kishan/module-sale-filter ^1.0.9

Installation

Composer Installation (Recommended)

# Pulls the core sale-filter module and module-core automatically.
composer require mage2kishan/module-sale-filter-hyva
bin/magento module:enable Panth_Core Panth_SaleFilter Panth_SaleFilterHyva
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento indexer:reindex panth_salefilter_product
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Manual Installation via ZIP

  1. Download the latest release from Packagist or from the product page.
  2. Extract it to app/code/Panth/SaleFilterHyva/ in your Magento install.
  3. Make sure Panth_Core and Panth_SaleFilter are installed too (required dependencies).
  4. Run the commands above starting from bin/magento module:enable.

Verify Installation

bin/magento module:status Panth_SaleFilterHyva
# Expected: Module is enabled

After install, open:

Admin -> Stores -> Configuration -> Panth Extensions -> Sale Filter -> Appearance (Hyva)

Configuration

Go to Stores -> Configuration -> Panth Extensions -> Sale Filter.

Setting Group Default Description
Expanded By Default Appearance (Hyva) Yes When enabled, the filter renders in its open state on first paint. Disable to render it collapsed until the shopper clicks the header. Store-scoped.

All other settings (enable/disable, filter label, show product count, position, discount sources) are in the core module's General group. See the core module README for that full list.

How It Works

  1. When a Hyva theme is active, Magento's layout system picks the template at Panth_SaleFilter::layer/filter/sale.phtml provided by this module.
  2. The FilterRenderer block reads the Expanded By Default setting from config and passes it to the template.
  3. The template uses Alpine.js x-data and x-show to handle open/close interaction and Tailwind classes for styling.
  4. The block's FPC cache key includes the expanded/collapsed value, so the cached output is correct for each config state.
  5. All indexing, filter matching, and URL handling is done by the core Panth_SaleFilter module, which runs regardless of the active theme.

Template Override

To customise the markup without editing module files, copy the template into your Hyva child theme:

app/design/frontend/<YourVendor>/<YourHyvaChild>/Panth_SaleFilter/templates/layer/filter/sale.phtml

The module source is at:

view/frontend/templates/layer/filter/sale.phtml

FAQ

Does this module work without the core sale filter module?

No. This package is a Hyva compatibility layer only. It depends on mage2kishan/module-sale-filter for the indexer, filter logic, URL params, and Luma template. Composer will pull the core module for you automatically.

Will it work on a Luma store?

No. This module is Hyva-only. For Luma, the core module mage2kishan/module-sale-filter already ships a Luma/Knockout template. You do not need this package for Luma.

Does the "On Sale" filter work with Hyva's default layered navigation?

Yes. The template registers itself under the existing Panth_SaleFilter module namespace, so it slots into Hyva's sidebar the same way any other filter does.

What does "Expanded By Default" actually control?

It sets the Alpine.js initial state for the filter accordion. When enabled, the filter list is visible on first paint. When disabled, shoppers must click the filter header to expand it. The FPC cache key is varied on this value, so the right state is served from cache.

Can I set different expanded states per store view?

Yes. The field is store-scoped, so you can set it at default, website, or store view level in Stores -> Configuration.

Does this module add any database tables?

No. All data is owned by the core Panth_SaleFilter module. This module adds only admin config fields and a frontend template.

Is it translation ready?

Yes. All admin labels use Magento's translation pipeline, so you can override them in a language pack or i18n/ CSV file.

What happens if I remove this module?

Removing only this module reverts Hyva storefronts to the core module's Luma template, which works but is visually off-theme. Remove both packages to drop the sale filter entirely.

Does Panth Sale Filter Hyva need Panth Core?

Yes. mage2kishan/module-core is a free, required dependency that Composer installs for you.

Support

Channel Contact
Product Page kishansavaliya.com/magento-2-sale-filter-hyva.html
Email kishansavaliyakb@gmail.com
Website kishansavaliya.com
WhatsApp +91 84012 70422
GitHub Issues github.com/mage2sk/module-sale-filter-hyva/issues
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech

Response time: 1-2 business days.

Need Custom Magento Development?

Looking for custom Magento module development, Hyva theme work, store migrations, or performance tuning? Get a free quote in 24 hours:

Get a Free Quote

Hire on Upwork    Visit Agency    View Product Page

About Panth Infotech

Built and maintained by Kishan Savaliya (kishansavaliya.com), a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.

Panth Infotech is a Magento 2 development agency that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on our Magento extensions page or on Packagist.

Quick Links

Resource Link
Product Page magento-2-sale-filter-hyva.html
Packagist mage2kishan/module-sale-filter-hyva
GitHub mage2sk/module-sale-filter-hyva
Website kishansavaliya.com
Free Quote kishansavaliya.com/get-quote
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech
Email kishansavaliyakb@gmail.com
WhatsApp +91 84012 70422

Ready to add a native On Sale filter to your Hyva store?
See Sale Filter Hyva

SEO Keywords: magento 2 sale filter hyva, hyva on sale filter, magento 2 layered navigation sale, hyva layered navigation, magento 2 on sale products filter, alpine js layered navigation magento 2, magento 2 sale badge filter, hyva sale filter extension, magento 2 sale products sidebar filter, panth sale filter hyva, mage2kishan sale filter hyva, magento 2 hyva layered navigation extension, magento 2 sale filter alpine js, hyva theme layered navigation sale, magento 2 on sale layered navigation, magento 2 sale filter module hyva, magento 2.4.8 hyva sale filter, php 8.4 hyva sale filter, panth infotech, kishan savaliya magento, hire magento hyva developer, top rated plus upwork, custom magento development

mage2kishan/module-sale-filter-hyva 适用场景与选型建议

mage2kishan/module-sale-filter-hyva 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 23 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「magento2」 「magento2-module」 「hyva」 「layered-navigation」 「panth」 「sale-filter」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mage2kishan/module-sale-filter-hyva 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mage2kishan/module-sale-filter-hyva 我们能提供哪些服务?
定制开发 / 二次开发

基于 mage2kishan/module-sale-filter-hyva 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 42
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-04-23