kowal.info

Unit Pricing Hyvä

Product page

Sales Units and Price Conversion — kowal.co

Description

Show converted unit prices alongside the price displayed by Hyvä so shoppers can compare products sold in packs or measured units.

For whom

For catalogs where the sales unit differs from the unit customers use to compare prices.

Features

  • Use the product’s unit settings and the base module’s decimal calculator.
  • Read the current price from the Hyvä product price component.
  • Respect the configured tax display when presenting converted amounts.

Installation

This component is included in Sales Units and Price Conversion. Follow the module installation instructions. Enable the base module and its adapter, then apply the release:

bin/magento module:enable Kowal_UnitPricing Kowal_UnitPricingHyva
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. In Stores → Configuration → Catalog → Sales Units and Price Conversion, enable the core presentation and Enable Hyva Presentation for the target view.
  2. Configure the sales unit, conversion and display mode for a test product. If customers buy whole packs, check the product’s minimum quantity and quantity increments.

Requirements / notes

The quantity field uses the catalog unit. Confirm what one unit in the cart represents before comparing the displayed conversion with the pack price.

FAQ

Why does a custom product page show a normal price but no conversion?

Check the store-view settings and the product configuration. The adapter looks for the Hyvä price component named initPrice followed by the product ID.

Verify the installation

bin/magento module:status Kowal_UnitPricingHyva

For a test product priced per pack, calculate the expected price per unit using its pack size. Compare it with the displayed value. If a product option changes the price, select it and check the converted amount again.