A simple Magento 2 module that adds the text field Attribute unit
and Attribute Decimal Places
to the tab
Storefront Properties
of Attribute Information
in the admin area. The content of those text fields will be added
after the formated value of the attribute, when this attribute is rendered in frontend.
For example the value 12345.6
with the unit mm
and decimal places 3
will be rendered to 12.345,600 mm
in german
stores or 12,345.600 mm
in english stores.
- Add the repository to the repositories section of your composer.json file
"repositories": [
{
"type": "vcs",
"url": "[email protected]:PartBerlin/AttributeUnits.git"
}
],
- Require the module & install
composer require partberlin/module-attributeunits:dev-master
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.