Price per item or per pack? Make sales units clear in Magento 2
MAGENTO 2 · SALES UNITS · CLEAR PRICES
One carton costs PLN 96. Another costs PLN 120. Which is the better deal? Until you know how many items each pack contains, the price alone tells you little.
Online shoppers face this question with tiles, materials sold by the metre, goods sold by weight and wholesale supplies. They want to compare costs and order the right quantity. Making them search the description for a conversion factor adds work just before purchase.
The Sales Units and Price Conversion for Magento 2 module connects each price to its unit and shows how it relates to a second unit. This makes your offer easier to understand while customers browse products.
PLN 96 per pack. PLN 8 per item. One offer, two perspectives.
Suppose you sell a pack of 12 items for PLN 96. Each item costs PLN 8. Another pack costs PLN 120 and contains 20 items, giving a unit price of PLN 6. The more expensive carton can therefore have a lower cost per item.
Showing both perspectives helps customers compare offers without a calculator. Depending on the selected mode, the module highlights the pack price, the unit price or both amounts, together with the relation 1 pack = 12 items.
Important: if the Magento catalogue price is per pack, a purchase quantity of 1 still means one pack. Displaying PLN 8 per item does not enable individual item sales. All example amounts use the same tax basis.
When is a second unit useful next to the price?
A conversion factor is useful whenever the delivery unit differs from the unit customers use to compare products.
- Wholesale: customers order cartons but compare the cost per item.
- Finishing materials: a pack covers a defined area, while customers compare the price per square metre.
- Fabrics and rolled materials: customers buy a roll but budget by the metre.
- Goods sold by weight: a kilogram-to-gram relation provides another point of reference.
These are examples of how unit configuration can be used. You define a fixed relation between units for each product; the module does not calculate room areas or the number of packs needed for a renovation.
There are 18 available units, including item, pack, carton, pallet, set, pair, roll, metre, square metre, litre and kilogram. Unit labels can be translated for each store view.
Four ways to make prices clear
Different stores need different layouts. A wholesaler may prioritise the carton price; a materials shop may highlight the unit customers use to plan their spending. Set a default display mode for each store view and override it for individual products when needed.
1. Units only
The price shows its unit, and the quantity field shows the purchasing unit. There is no second price or details icon.
A useful starting point when your main aim is to explain what customers are buying.
2. Pack price first
The main amount is the pack price. Customers can check the second unit price in the details under the information icon.
Useful when you want to highlight the cost of the delivery unit.
3. Unit price first
Customers primarily see the converted unit price, with the pack price available in the details.
This helps compare offers. The unit beside the quantity field still corresponds to the Magento catalogue price.
4. Both prices at a glance
The catalogue price remains primary, with the unit relation and second price displayed alongside it. No need to open the details.
Useful when both pieces of information matter equally to the buyer.
For relations such as kilogram–gram, modes with details keep the catalogue price as primary. Units are not artificially treated as “pack” and “item”. The both-prices mode still displays both amounts.
Promotional prices need the right conversion too
If a pack of 12 items drops from PLN 96 to PLN 84, each item should cost PLN 7. A manually written note in the description can easily retain the old amount. Quantity discounts raise a similar issue.
The module uses Magento’s current numeric price data. The additional price therefore uses the same basis as the current product price, including special prices and quantity tiers. It respects the store’s tax and currency context.
You do not need to maintain an extra price in the description. You still need to configure the unit relation correctly and verify the display in the target store. Quantity-tier messages refer to the catalogue purchasing unit.
From product listings to pages built with Page Builder
Customers compare prices before opening a product page. Units and conversions can therefore appear in category listings and on product pages, as well as in Page Builder product grids and carousels. Related products and upsells are also covered, with separate switches.
This supports consistent presentation across categories and landing pages with selected products. Luma and Hyvä are supported; the Hyvä adapter is included in the package and must be enabled separately.
Optional catalogue-unit labels are available in supported cart areas and the order summary. A custom checkout may require integration. The module has no direct integration with Hyvä Checkout.
Full packs: the display must match the sales rules
There are two distinct scenarios. If the catalogue price is per pack, quantity 1 already means a full pack. If the catalogue price is per item and you also want to show the cost of a pack of 12, the ordering rules must match that relation.
The second scenario requires compatible native Magento settings, including enabled stock management and quantity increments. For example, a minimum of 12 and an increment of 12 correspond to full packs. With a minimum of 1 and no suitable increment, the module displays catalogue units only.
The module checks these rules but does not set them. It does not change cart quantities, transaction prices or stock levels. The additional display therefore stays aligned with the actual purchasing unit.
How do you get started with a product?
- Define the catalogue unit. Decide whether Magento’s native price and quantity refer to a pack, an item, a metre or another unit.
- Enter two units and a conversion factor. For example, one pack contains 12 items. Set the price basis and enable conversion for the product.
- Choose the display mode. Decide what customers should see immediately and what belongs in the details.
- Check the purchase journey. Verify the listing, product page, Page Builder blocks in use and cart, including promotions and quantity changes.
Start with a few representative products. This makes it easier to assess whether labels, unit relations and the display are clear to your customers.
What to know before deployment
The current version supports simple and virtual products without custom options. Configurable, bundle and grouped products, price-changing options and products with MSRP are outside the supported conversion scope.
Release 0.1.0 was installed and tested on a demonstration environment with Magento 2.4.9, PHP 8.3, Hyvä 1.5.3 and Page Builder 2.2.7, including display acceptance checks for Luma and Hyvä. This confirms a specific environment; deployment in your store requires checking its theme, taxes, quantity rules and checkout.
Customers should compare offers without guessing
The pack price explains the purchase cost. The unit price helps assess value. A clear relation between them brings these two needs together in one place.
Explore Sales Units and Price Conversion for Magento 2 and match the display to the units you sell in.