承接 phong/module-fixed-percent-max-amount 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

phong/module-fixed-percent-max-amount

Composer 安装命令:

composer require phong/module-fixed-percent-max-amount

包简介

Percent of Product Price with Max Discount

README 文档

README

Overview

This extension introduces a new Cart Price Rule action in Magento:

Percent of Product Price with Max Discount

The rule allows store administrators to apply a percentage-based discount on product prices while limiting the total discount amount using a configurable maximum discount value.

This helps control promotional costs while still offering flexible percentage discounts.

How It Works

When the rule is applied, the system calculates the discount amount based on:

The minimum value between:

  • Percentage discount calculated from the quote total
  • Configured maximum discount amount

This ensures that the applied discount will never exceed the defined maximum limit.

Discount Calculation Logic

Rule Parameters

  • Discount Percent — Percentage discount applied to quote total
  • Max Discount Amount — Maximum allowed discount value

Calculation Formula

discount_amount = MIN(
    quote_total × discount_percent,
    max_discount_amount
)

Installation

Install the module via Composer:

composer require phong/module-fixed-percent-max-amount

Then run Magento commands:

php bin/magento module:enable Phong_FixedPercentMaxAmount
php bin/magento setup:upgrade
php bin/magento cache:flush

Compatibility

  • Magento Open Source 2.4.6+
  • Magento Commerce 2.4.6+
  • PHP 8.1+

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2026-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固