Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 Unit Converter: cm and inch, kg and lb with a Switch

Magento 2 Extension Hyvä Ready Magento 2.4.x

SKU: UNITCONVERTER1

  • switch between cm and inch as well as kg and lb in the frontend
  • attributes are assigned to unit groups
  • factors and rounding configurable
  • original value stays leading, choice is remembered
Auf Lager
€99.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

6 features

Magento 2 Unit Converter: dimensions and weights in the customer unit

With the Magento 2 unit converter from Mironsoft customers see lengths, widths and weights in the unit they know. A switch toggles between cm and inch and between kg and lb right on the product page. You assign your attributes to unit groups and define factors and decimal places. The stored value stays unchanged, the conversion only happens in the display. The module runs on Alpine.js and needs no extra library.

Switch cm and inch

One click changes all length values on the product page between metric and imperial.

Switch kg and lb

Weights can be shown in kilograms or pounds, if needed also in grams and ounces.

Assign attributes

You decide which product attributes belong to which unit group.

Factors and rounding

Factors and decimal places are configurable per unit so values stay readable.

Original value stays

Your value is still stored and delivered, only the display is converted.

Choice remembered

The selected system stays in the browser and applies to all further products.

Why convert

Why customers should be able to use a Magento 2 unit converter

Anyone selling internationally knows the problem: a customer from the USA reads 120 centimetres and has to calculate, a customer from Germany reads 47 inches and does not know the measure. Anyone searching for Magento 2 cm to inch conversion or a Magento 2 kg to lb switch wants to avoid this question. Wrong ideas of size lead to returns.

With the Magento 2 unit converter the customer decides in which system to read. You still maintain only one value per attribute. That saves double maintenance, avoids typing errors between two attributes and makes your product pages easier to understand for customers in several countries.

01Switch

Magento 2 unit converter with a switch on the product page

A switch appears on the product page, for example Metric and Imperial. One click converts all assigned values immediately, without reloading and without a request to the server. This applies to the specification table, the short description and values in configurator options. If you like, both values are shown at the same time, for example 120 cm (47.2 inch).

  • Conversion immediately, no reload
  • Specification table, short description and options
  • Optionally both values side by side
Frontend · product page
Switch
Metric | Imperial
Width
120 cm equals 47.2 inch (example)
Weight
8.5 kg equals 18.7 lb (example)
Admin › Unit groups
Group
Length: cm › inch
Attributes
Width, height, depth
Group
Weight: kg › lb
02Attributes

Assign attributes and unit groups cleanly

In the admin you create unit groups, for example length with cm as base and inch as target, and assign attributes: width, height, depth, weight, diameter. The base value must be purely numeric or contain a recognisable unit. Attributes without assignment remain untouched. That regulates clearly what is converted and what is not, and texts such as size M are never touched.

  • Unit groups for length, weight and more
  • Assignment of single attributes
  • Unassigned texts stay untouched
03Rounding

Set factors, decimal places and rounding rules

The standard factors are stored, and you adjust them if needed. For every unit you define the decimal places: inches with one digit, pounds with two. A rounding rule decides whether values are rounded commercially or, for dimensions, to the nearest half inch. A short note such as Converted values are approximations can appear below the table. The original values remain authoritative.

  • Decimal places per unit
  • Commercial rounding or to half units
  • Note text on approximate values
Configuration › Rounding
Inch
1 decimal place (example value)
Pound
2 decimal places (example value)
Note
Converted values are approximations
Configuration › Default
Store German
metric
Store English
imperial
Storage
browser, local storage
04Default

Default system per store view and remembered choice

For the German store the display starts metric, for a US store imperial. The customer can switch at any time, the choice is stored in the browser and applied on the next visit. The switch can be operated by keyboard and is labelled for screen readers. Whether the storage must be named in your cookie statement is for you to review as the shop owner.

  • Starting system per store view
  • Choice remembered in the browser
  • Keyboard operation and labels
Use cases

Where the Magento 2 unit converter helps in everyday shop work

Typical situations in which the Magento 2 unit converter avoids returns.

Furniture and home

Customers in the USA check width and height in inches, German customers in centimetres. Both read the same page.

Sports and outdoor

Weights of equipment in pounds or kilograms ease the comparison with manufacturer data.

Tools and technology

Diameters and lengths in millimetres or inches help professional customers match existing parts.

International shipping

The English store starts imperial, the German one metric, without two separate data maintenance efforts.

Comparison

Magento 2 unit converter: comparison without and with the module

The difference to attributes maintained twice.

TopicWithout moduleWith Mironsoft Unit Converter
Data maintenanceTwo attributes for cm and inchOne value, conversion in the display
Error rateTyping errors between the valuesFactor always the same
Customer choiceNot possibleSwitch with remembered choice
RoundingRounded by handRules per unit
New marketsCreate new attributesDefault system per store view
Setup

How we set up the Magento 2 unit converter for you

The process after you place your order.

1

Briefing

You tell us attributes, unit groups, target markets and the desired starting system.

2

Installation

We install the module and set up the Magento 2 unit converter for your store views. Afterwards we test the Magento 2 unit converter with your attributes, specification tables and options.

3

Factors

We store factors, decimal places and rounding rules to suit your range.

4

Test

We check switch, remembered choice, specification table and category list in all languages.

5

Handover

Your team receives an introduction to unit groups, assignment and rounding.

Differences

Differences to the specification table

The specification table from Mironsoft presents attributes clearly in groups. The Magento 2 unit converter adds a switch that shows the values in another unit system. Both modules can be combined, and the converted values then appear directly in the table.

The module converts only in the display. Prices, shipping weights and structured data stay on your base value. It runs with Alpine.js in the Hyvä theme without an additional library. You review legal requirements for dimension statements as the shop owner.

05How the purchase works

No download — personal setup instead

The unit converter is not listed here as a ready-made download file for self-installation. The purchase is a service commission: we get in touch after the purchase, install the module in your shop and agree on attributes, factors and rounding together with you.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

Frequently asked questions

Everything important about the Magento 2 unit converter: the switch, attributes, rounding and how the purchase works.

How can I convert cm to inch in Magento 2?
With the Magento 2 unit converter a switch appears on the product page. One click converts all assigned dimensions immediately.
Is the stored value changed?
No. The original value stays unchanged, the conversion affects the display only.
Which attributes can I convert?
All numeric attributes you assign to a unit group, such as width, height, depth and weight.
How accurate is the conversion?
You define factors, decimal places and rounding rules. A note text can point out that the values are approximations.
Can I set a different starting system per store view?
Yes. The German store can start metric, the English one imperial.
Is the customer choice remembered?
Yes. It is stored in the browser and applied on the next visit.
Do prices or shipping weight change through the conversion?
No. Prices, shipping weights and structured data stay on your base value.
Does the Magento 2 unit converter work with Hyvä?
Yes, the interface is built with Alpine.js, without jQuery and without an extra library.
How does it differ from the specification table?
The specification table arranges attributes clearly. The Magento 2 unit converter switches the displayed values between unit systems.
Can I download and install the module myself?
No. This offer is not a download product. After the purchase we install and configure the module for you personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 Unit Converter – Mironsoft
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 Unit Converter – Mironsoft

Magento 2 Unit Converter – Mironsoft

€99.00