kowal.info

Discount Details

Composer kowal/module-discount-details · Version 1.0.14

Product page

Discount Details — kowal.co

Description

Show the discounted price and savings for a cart item so shoppers can see how a promotion affects their purchase.

For whom

For stores whose customers need an item-level breakdown before placing an order.

Features

  • Separate visibility settings for the minicart, cart and checkout.
  • Display discounts as an amount or percentage.
  • Configurable labels and colours.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-discount-details
bin/magento module:enable Kowal_DiscountDetails
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Enable the module under Stores → Configuration → Kowal → Discount Details → General.
  2. In Display, choose the storefront areas and whether to show the amount or percentage. Set the wording for the store view under Labels.
  3. On Hyvä, install the theme module before enabling Kowal_DiscountDetailsHyva. Apply the Magento setup upgrade and switch on Hyva Compatibility → Enable Hyva Rendering.

Requirements / notes

The Hyvä adapter requires hyva-themes/magento2-theme-module. In a custom Hyvä minicart, matching a discount to its row depends on the cart item ID in the theme markup.

FAQ

Does enabling the module create a promotion?

Configure the promotion in Magento. The module displays the discount Magento has already applied to the cart item.

Verify the installation

bin/magento module:status Kowal_DiscountDetails

Add two different products and apply a rule that covers only one. Compare the savings shown for that item in the cart, minicart and summary with the discount Magento applied.

Components included in Discount Details