See the way the Price per Unit for Magento 2 extension works.
Automatically calculate and display unit prices (base prices) for products in your Magento 2 store. Comply with the pricing requirements of your local law and help customers make fast and informed purchases.
To start configuring the extension, please navigate to Stores → Configuration → Amasty Extensions → Price per Unit → General.
Enable Price per Unit - Set to Yes to enable the extension and allow unit price display.
Display Price per Unit on - select store pages and locations where you would like to display unit prices for products:
The Price Per Unit extension enables you to calculate and display unit prices individually for each simple (child) option within a configurable (parent) product, considering the actual prices and the Unit Price tab setup on the edit page of each simple product.
Important: To enable price per unit display for the simple (child) products on the frontend, it is necessary to configure the settings not only in the Unit Price tabs on the edit pages of the simple (child) products but also in the Unit Price tab on the edit page of the configurable (parent) product they are linked with.
You can conveniently view, manage, and create units all in one place. To access the Unit Grid, navigate to Catalog → Price per Unit → Units.
After enabling the extension, the grid includes three commonly used metrics (weight, lengths, volume) by default:
You also have the flexibility to create custom metrics as needed (e.g. Pounds/Kilograms, Ounces/Pounds, Feet/Inches, Gallon/fl oz, etc.). Simply click the Add New button to create a new measurement unit or click Edit in the Action column to modify an existing one.
After clicking the Add New button on the Units Grid, you’ll need to fill in the following settings:
Unit Name - provide the name of the future unit in a clear way to easily identify it when setting to products.
Product Unit Measure - specify the unit of measurement for the product.
Reference Unit - specify the reference unit for unit price measurement to which the price should be calculated.
Reference Amount - specify the reference amount of measurement used for calculating the price per unit.
Conversion Rate - specify the ratio of product units to the reference unit.
Price Per Unit Text - define the format of the unit price display on product, category, and shopping cart pages.
Template that is used by default:
{{unit_price}} / {{reference_amount}} {{reference_unit}}
Feel free to combine these variables:
{{unit_price}}, {{reference_amount}}, {{reference_unit}}, {{measure_unit}}, {{product_amount}}, {{product_price}}.
Also, you can add extra words and symbols between variables to customize the default template according to your needs.
Customized template (example):
equals {{unit_price}} per {{reference_amount}} {{reference_unit}}
To better understand the process of unit creation, we recommend checking out the examples below.
Let’s imagine that you sell:
1. ‘Whey Protein’ supplement weight of 450 Gr for $14.49 and want to indicate its price per unit (1 Kg)
In this case:
2. Vitamin B Complex 120 pills pack for $21.99 and want to indicate price per unit (1 count)
In this case:
Let’s plug in the values from our examples:
You can see the mentioned examples in action by visiting the extension's demo.
To assign units to a specific product please go to Catalog → Products and open the necessary product. Then scroll to the bottom of the edit page and expand the Unit Price tab.
Product Measuring Unit - select one of the pre-created units from the dropdown.
Product Amount - specify the amount of a particular product.
The extension supports Tier Prices, and the Unit Price can be displayed for each price level.
To assign Tier prices, navigate to Product → Price → Advanced Pricing.
Here you can configure the prices and discounts.
See how the unit/base price block looks on different store pages.
Product Page
Category Page
Shopping Cart Page
The Price per Unit extension includes API support, allowing store admins to perform CRUD actions on unit prices:
Find out how to install Price Per Unit for Magento 2 via Composer.