Magento 2 Product Discount Label
magepsycho/magento2-discountlabel
This extension allows displaying custom discount labels with calculated savings on catalog and cart pages.
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
+5 older tests
Looking for Contributors
Dependency injection compilation fails. Your contribution could help the entire Magento community!
Share This Module's Status
README
Loaded from GitHub
Magento 2 Product Discount Label
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.


Installation
- Download the extension .zip file and extract the files.
- Copy the extension files from src/ folder to the
{your-magento2-root-dir}/app/code/MagePsycho/DiscountLabel(create non-existing folders manually) - 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
- Flush the store cache
php bin/magento cache:flush
- Deploy static content - in Production mode only
rm -rf pub/static/* var/view_preprocessed/*
php bin/magento setup:static-content:deploy
- Go to Admin > CATALOG > Discount Label > Manage Settings
Live Demo:
Changelog
Version 1.0.0 (2022-02-02)
- Initial Release.
Authors
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.