This module displays the original price, the discounted price, and the percentage difference between them. It is useful for showing discount percentages on product listings and detail pages.
This module adds a new field formatter to show at the same time:
- The original price of the variation.
- The price with the promotions applied.
- The difference in price in percentage.
The initial idea arose in a project in which it was necessary to show the percentage of discount both in the lists of products and in the pages of detail.
REQUIREMENTS
This module requires the following modules:
- Commece (https://www.drupal.org/project/commerce)
INSTALLATION
- Install as you would normally install a Drupal module contributed.
CONFIGURATION
- Go to the dispaly management page of the fields of product variations: Administration >> Commerce >> Configuration >> Product variation types >> Edit Default (/admin/commerce/config/product-variation-types/default/edit/display)
- Select "Price Difference Formatter" as the format of the price field and configure the options
Ask your assistant about Price Difference Formatter
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- Commerce Core commerce_order
- Commerce Core commerce_product
- Commerce Core commerce_promotion
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-1.4 | Stable | 9–10 | Jan 13, 2023 |