Discount Details Hyvä
Product page
Description
Show the discount breakdown beside the matching cart item on Hyvä cart, minicart and supported checkout layouts.
For whom
For stores that want customers to see the savings on each line, especially when only some items qualify for a promotion.
Features
- Show configured price and savings details for discounted items.
- Match cart rows and drawer items using their quote item identifiers.
- Place details in a custom checkout container using a markup attribute.
Installation
This component is included in Discount Details. Follow the module installation instructions. Enable the base module and its adapter, then apply the release:
bin/magento module:enable Kowal_DiscountDetails Kowal_DiscountDetailsHyva
bin/magento setup:upgrade
bin/magento cache:clean
Configuration
- In Stores → Configuration → Kowal → Discount Details, enable the required display areas and choose the labels and savings information to show.
- In the target Hyvä store view, turn on Hyva Compatibility → Enable Hyva Rendering. Clean the configuration and full-page caches.
Requirements / notes
On a customized checkout, expose the quote item ID on the row using data-cart-item-id, data-item-id or data-quote-item-id. Mark the intended details container with data-kowal-discount-details-target.
FAQ
Why do savings appear in the cart but disappear in the checkout summary?
Check whether the summary markup identifies the matching quote item. For products with similar names, expose the item ID explicitly.
Verify the installation
bin/magento module:status Kowal_DiscountDetailsHyva
Add two different products and apply a rule that discounts only one. Compare the amounts and their placement in the cart, the cart drawer and the checkout summary after changing the quantity.