The Home for
Magento Excellence

Explore. Discover. Elevate. #magento

162
Modules Tested
98
Ready for Magento 2.4
64
Need Your Help
Potentially Abandoned v1.0.0

Magento 2 Product Discount Label

magepsycho/magento2-discountlabel

This extension allows displaying custom discount labels with calculated savings on catalog and cart pages.

423
Downloads
Below average
21
GitHub Stars
Below average
4y ago
Last Release
0
Open Issues
Build Issues
2/3 checks passed

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
PHPStan Failed

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.0 on Magento 2.4.8-p3
Dec 16, 2025
v1.0.0 on Magento 2.4.8-p2
Aug 14, 2025
v1.0.0 on Magento 2.4.8
May 21, 2025
v1.0.0 on Magento 2.4.7-p4
Feb 15, 2025
v1.0.0 on Magento 2.4.7-p3
Oct 19, 2024
v1.0.0 on Magento 2.4.7-p2
Sep 8, 2024

+5 older tests

GitHub Repository
Source code & docs
Packagist
Version history
Issues & Support
Get help or report bugs

Looking for Contributors

Dependency injection compilation fails. Your contribution could help the entire Magento community!

Contribute

Share This Module's Status

Magento 2 Product Discount Label Magento compatibility status badge

README

Loaded from GitHub

Magento 2 Product Discount Label

Magento 2 Product Discount Label

Packagist Version Packagist Downloads Supported Magento Versions License

Overview

Magento 2 Product Discount Label allows displaying custom discount labels with calculated savings on catalog and cart pages.

Showing custom labels with calculated discount (ex: SAVE X%, -X%, .etc.) draws the attention of the users and motivates purchasing behavior.
In other words, this extension helps to promote products and get higher conversion rates.

This is an absolute "must-have" for every store - especially stores which offer deals and discounts.

Key Features

  • Enable/disable the extension as per store
  • Option to set the custom label with a dynamic discount placeholder on the catalog/product page
  • Option to set the custom label with a dynamic discount placeholder on the cart page

Feature Highlights

Set Discount Label

With this extension, the store admin can set different discount labels for both catalog & cart pages.

Some examples:

  • SAVE {{discount_percent}}%
  • -{{discount_percent}}%
  • etc.

{{discount_percent}} will be replaced by discount percent value.

M2 Product Discount Label - Admin Settings

M2 Product Discount Label - Product Page

Installation

  1. Download the extension .zip file and extract the files.
  2. Copy the extension files from src/ folder to the {your-magento2-root-dir}/app/code/MagePsycho/DiscountLabel (create non-existing folders manually)
  3. Run the following series of commands from the SSH console of your server:
php bin/magento module:enable MagePsycho_DiscountLabel --clear-static-content
php bin/magento setup:upgrade
  1. Flush the store cache
php bin/magento cache:flush
  1. Deploy static content - in Production mode only
rm -rf pub/static/* var/view_preprocessed/*
php bin/magento setup:static-content:deploy
  1. Go to Admin > CATALOG > Discount Label > Manage Settings

Live Demo:

Changelog

Version 1.0.0 (2022-02-02)

  • Initial Release.

Authors

  • Raj KB Twitter Follow

Contributors

Contributors

To Contribute

Any contribution to the development of Magento 2 Product Discount Label is highly welcome.
The best possibility to provide any code is to open a pull request on GitHub.

Need Support?

If you encounter any problems or bugs, please create an issue on GitHub.

Please visit our store for more FREE / paid extensions OR contact us for customization / development services.

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.

Back to All Modules