mons/magento-toolbar-sorter
Composer 安装命令:
composer require mons/magento-toolbar-sorter
包简介
关键字:
README 文档
README
Customize and optimize the default product listing sort by, include the direction in a single select element.
Installation
- Install module via composer
composer require mons/magento-toolbar-sorter - Register module
php bin/magento setup:upgrade
Configuration
- Navigate to Stores > Attributes > Product
- Choose the sortable attribute you want to configure
- From the "Storefront Properties" tab, turn on the "Used for Sorting in Product Listing", then choose the behavior from "Product Listing Sorter" (see the options below)
Options
- Default (do not override): use Magento's default sorting setting (normally ascending)
- Ascending: show only the option for ascending (from low to high) order
- Descending: show only the option for descending (from high to low) order
- Ascending + Descending: show both the options above, ascending first
- Descending + Ascending: show both the options, descending first
Theming
This module doesn't override the default template Magento_Catalog::product\list\toolbar\sorter.phtml, giving you the full control on it.
Anyhow a working sample is provided as Mons_ToolbarSorter::product\list\toolbar\sorter.phtml.
Tested working with
- Magento 2.4
- PHP 8.1
Contribution
- Fork this repository
- Create your feature branch (
git checkout -b feature/your-new-feature) or a bugfix branch (git checkout -b bugfix/bug-short-description) always fromdevelop - Commit and submit a new Pull Request
mons/magento-toolbar-sorter 适用场景与选型建议
mons/magento-toolbar-sorter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 573 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 02 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「catalog」 「toolbar」 「magento 2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mons/magento-toolbar-sorter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mons/magento-toolbar-sorter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mons/magento-toolbar-sorter 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
ZF2 Zend developer toolbar addon : Playground Template Hint
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
Magento - Clean up session extension
Allows easy API consumer debugging with web debug toolbar extension.
Enterprise-grade debugging, profiling, inspection, and diagnostics package for MonkeysLegion — zero-magic PHP 8.4+ observability.
统计信息
- 总下载量: 573
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AFL-3.0
- 更新时间: 2023-02-28
