andriy/magento2-luxury-tax 问题修复 & 功能扩展

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

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

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, and sales_creditmemo tables
  • 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_amount value:
    • < 100 → ⚪ white
    • 100–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

  1. Copy the module to: app/code/Andriy/LuxuryTax
    1. 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\Totals
    • Magento\Sales\Block\Adminhtml\Order\Invoice\Totals
    • Magento\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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-09