PHPackages                             magepsycho/magento2-discountlabel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. magepsycho/magento2-discountlabel

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

magepsycho/magento2-discountlabel
=================================

Magento 2 Product Discount Label

1.0.0(4y ago)214844OSL-3.0PHP

Since Feb 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MagePsycho/magento2-product-discount-label)[ Packagist](https://packagist.org/packages/magepsycho/magento2-discountlabel)[ Docs](https://www.magepsycho.com/magento2-product-discount-label.html)[ RSS](/packages/magepsycho-magento2-discountlabel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Magento 2 Product Discount Label](https://camo.githubusercontent.com/21d85452cbb9037cc0b473fb795e3f117158b344da13996fc3f294103b63db2b/68747470733a2f2f692e696d6775722e636f6d2f643851454852622e706e67)](https://camo.githubusercontent.com/21d85452cbb9037cc0b473fb795e3f117158b344da13996fc3f294103b63db2b/68747470733a2f2f692e696d6775722e636f6d2f643851454852622e706e67)

Magento 2 Product Discount Label
================================

[](#magento-2-product-discount-label)

[![Packagist Version](https://camo.githubusercontent.com/0ee1cbc08ee20ceba13e78a35ce55e35f7148c716d54a37b3ab972e689d458b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f4d61676550737963686f2f6d6167656e746f322d70726f647563742d646973636f756e742d6c6162656c3f6c6f676f3d7061636b616769737426736f72743d73656d766572266c6162656c3d7061636b6167697374267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/magepsycho/magento2-discountlabel)[![Packagist Downloads](https://camo.githubusercontent.com/ab7f3a73ed08a91d0d15e74869c78f43b0319338fe930105b81566b0faaf0d9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61676570737963686f2f6d6167656e746f322d646973636f756e746c6162656c2e7376673f6c6f676f3d636f6d706f736572267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/magepsycho/magento2-discountlabel/stats)[![Supported Magento Versions](https://camo.githubusercontent.com/383fa0d82dfdc41be8815b1665beec1d0f96e7b1c5d65d1b3a792f2bc164b767/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e335f2537435f322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/383fa0d82dfdc41be8815b1665beec1d0f96e7b1c5d65d1b3a792f2bc164b767/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e335f2537435f322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765)[![License](https://camo.githubusercontent.com/a8e59c52a61079bac6876857b971b3115f991aa15de6cb7a243876b23007bb62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f636f6c6f723d253233323334267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/a8e59c52a61079bac6876857b971b3115f991aa15de6cb7a243876b23007bb62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f636f6c6f723d253233323334267374796c653d666f722d7468652d6261646765)

Overview
--------

[](#overview)

[Magento 2 Product Discount Label](https://www.magepsycho.com/magento2-product-discount-label.html) 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
------------

[](#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
------------------

[](#feature-highlights)

### Set Discount Label

[](#set-discount-label)

With this extension, the store admin can set different discount labels for both catalog &amp; 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](https://camo.githubusercontent.com/f59e1f694a4c8e2fbb339a371f04e484039e074567a2aa02f74ee60f91634da3/68747470733a2f2f7777772e6d61676570737963686f2e636f6d2f6d656469612f636174616c6f672f70726f647563742f322f302f32302d6d322d646973636f756e742d6c6162656c2d61646d696e2d6c6162656c2d73657474696e67735f312e706e67)](https://camo.githubusercontent.com/f59e1f694a4c8e2fbb339a371f04e484039e074567a2aa02f74ee60f91634da3/68747470733a2f2f7777772e6d61676570737963686f2e636f6d2f6d656469612f636174616c6f672f70726f647563742f322f302f32302d6d322d646973636f756e742d6c6162656c2d61646d696e2d6c6162656c2d73657474696e67735f312e706e67)

[![M2 Product Discount Label - Product Page](https://camo.githubusercontent.com/e5536f6328b137d551c74a65e04239b29b58b2c550132dc3516c088c5e592009/68747470733a2f2f7777772e6d61676570737963686f2e636f6d2f6d656469612f636174616c6f672f70726f647563742f352f302f35302d6d322d646973636f756e742d6c6162656c2d73746f726566726f6e742d73616d706c65732e706e67)](https://camo.githubusercontent.com/e5536f6328b137d551c74a65e04239b29b58b2c550132dc3516c088c5e592009/68747470733a2f2f7777772e6d61676570737963686f2e636f6d2f6d656469612f636174616c6f672f70726f647563742f352f302f35302d6d322d646973636f756e742d6c6162656c2d73746f726566726f6e742d73616d706c65732e706e67)

Installation
------------

[](#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 &gt; CATALOG &gt; Discount Label &gt; Manage Settings

Live Demo:
----------

[](#live-demo)

- [Backend Demo](http://m2default.mage-expo.com/savvy-shoulder-tote.html)
- [Frontend Demo](http://m2default.mage-expo.com/admin_m2demo/?module=discountlabel)

Changelog
---------

[](#changelog)

**Version 1.0.0 (2022-02-02)**

- Initial Release.

Authors
-------

[](#authors)

- Raj KB [![Twitter Follow](https://camo.githubusercontent.com/1264ebcaa4f5a0968a5dc17aae246f1ae578e0e75bb9660cf06d3131596ca1fe/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f72616a6b626e702e7376673f7374796c653d736f6369616c)](https://twitter.com/rajkbnp)

Contributors
------------

[](#contributors)

[![Contributors](https://camo.githubusercontent.com/741ec1350bd59ee6b32821265701c30d75669a1a0270cd4bbe623c58eeac21bf/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d6d61676570737963686f2f6d6167656e746f322d70726f647563742d646973636f756e742d6c6162656c)](https://camo.githubusercontent.com/741ec1350bd59ee6b32821265701c30d75669a1a0270cd4bbe623c58eeac21bf/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d6d61676570737963686f2f6d6167656e746f322d70726f647563742d646973636f756e742d6c6162656c)

To Contribute
-------------

[](#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](https://github.com/MagePsycho/magento2-product-discount-label/pulls).

Need Support?
-------------

[](#need-support)

If you encounter any problems or bugs, please create an issue on [GitHub](https://github.com/MagePsycho/magento2-product-discount-label/issues).

Please [visit our store](https://www.magepsycho.com/extensions/magento-2.html) for more FREE / paid extensions OR [contact us](https://magepsycho.com/contact) for customization / development services.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1537d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47c847a6fe8bcd713aace9722ded18e2be56ffffde75e1a876957128714563e5?d=identicon)[MagePsycho](/maintainers/MagePsycho)

---

Top Contributors

[![MagePsycho](https://avatars.githubusercontent.com/u/1205071?v=4)](https://github.com/MagePsycho "MagePsycho (1 commits)")

---

Tags

discountecommercelabelmagentomagento2magento2-extensionmagento2-extension-freemagento2-modulepercentagemagentoextensionmodulecataloglabelproductpercentagemagento2 modulemagento 2 modulemagento 2 extensionmagento2 extensiondiscount

### Embed Badge

![Health badge](/badges/magepsycho-magento2-discountlabel/health.svg)

```
[![Health](https://phpackages.com/badges/magepsycho-magento2-discountlabel/health.svg)](https://phpackages.com/packages/magepsycho-magento2-discountlabel)
```

###  Alternatives

[olegkoval/magento2-regenerate-url-rewrites

Add into Magento 2 a CLI feature which allow to regenerate a Url Rewrites of products and categories

4423.7M2](/packages/olegkoval-magento2-regenerate-url-rewrites)[magepsycho/magento2-storepricing

Magento 2 Store View Pricing

2520.9k](/packages/magepsycho-magento2-storepricing)[werfu/magento2-url-key-mask

Enable Product and Category URL\_key generation using masks

135.4k](/packages/werfu-magento2-url-key-mask)[magepsycho/magento2-discountlimit

Magento 2 Discount Amount Limiter

1111.6k](/packages/magepsycho-magento2-discountlimit)[magepsycho/magento2-custom-shipping

Magento 2 Custom Shipping

697.5k](/packages/magepsycho-magento2-custom-shipping)[magepsycho/magento2-seosuite

Magento 2 FREE SEO Suite

106.3k](/packages/magepsycho-magento2-seosuite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
