andriy/magento2-luxury-tax
最新稳定版本:1.0.3
Composer 安装命令:
composer require andriy/magento2-luxury-tax
包简介
Magento 2 module: Luxury Tax
README 文档
README
Magento 2 module that introduces a custom Luxury Tax feature.
🚀 Features
- Adds a new total (
luxury_tax) to Cart, Checkout, and Order totals - Persists values in
sales_order,sales_invoice, andsales_creditmemotables - Displays Luxury Tax in the Admin panel on Order, Invoice, and Credit Memo view pages
- Highlights rows in the Sales Orders grid depending on the
luxury_tax_condition_amountvalue:< 100→ ⚪ white100–1000→ 🟡 yellow> 1000→ 🟢 green
📦 Installation
Via Composer
composer require andriy/magento2-luxury-tax:dev-main bin/magento module:enable Andriy_LuxuryTax bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy -f bin/magento cache:flush
Manual Installation
- Copy the module to: app/code/Andriy/LuxuryTax
-
- Run the following Magento commands:
bin/magento module:enable Andriy_LuxuryTax bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy -f bin/magento cache:flush
⚙️ Technical Details
-
Custom total calculation:
Andriy\LuxuryTax\Model\Quote\Address\Total\LuxuryTax -
Data persistence across Quote → Order → Invoice / Credit Memo via fieldsets and observers
-
Admin totals extended with plugins on:
Magento\Sales\Block\Adminhtml\Order\TotalsMagento\Sales\Block\Adminhtml\Order\Invoice\TotalsMagento\Sales\Block\Adminhtml\Order\Creditmemo\Totals
-
Orders grid extended with
luxury_tax_condition_amount;
rows highlighted via JS depending on the value
🛠 Requirements
- Magento Open Source / Commerce 2.4.x
- PHP >= 7.4
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-09