-
Notifications
You must be signed in to change notification settings - Fork 97
How is unit conversion for measurement (metric) attributes supposed to work? #731
Description
we are currently evaluating the behavior of unit conversion for measurement (metric) attributes in the akeneo/magento2-connector-community and would like some clarification, as the actual behavior seems to differ from the documentation.
Scenario
We have multiple channels configured, like:
- EU Channel
- Measurement unit: Centimeter (cm)
- US Channel
- Measurement unit: Inch (in)
Details:
- The same measurement attribute (e.g. a length attribute) is:
- Defined as a metric attribute in Akeneo
- Mapped as a metric attribute in the Magento connector
- In Akeneo, the value is always entered in centimeters for both channels
- In Magento:
- The EU channel should receive the value in cm
- The US channel should receive the value converted to inches
Expected Behavior
Based on the documentation, we expected the connector to automatically convert metric values depending on the channel configuration (e.g. cm → inch for the US channel).
Actual Behavior
-
During import into Magento no unit conversion happens
-
The value is imported as-is (centimeters), even though:
- The US channel is configured to use Inch
- The attribute is mapped as a metric attribute
-
Additionally, the documentation mentions a configuration option:
Check the “Convert Metric Attributes” option in the Products section of your connector configuration
Run a synchronizationHowever, this configuration option does not exist in our connector configuration (neither in the UI nor in the system configuration).
Questions
- How is unit conversion for metric attributes supposed to work in the current versions of the connector?
- Is automatic unit conversion between channels (e.g. cm → inch) supported at all?
- Is the "Convert Metric Attributes" option deprecated, renamed, or removed?
- If conversion is not supported anymore, what is the recommended approach to handle multi-channel unit differences?
System Information
- Magento: 2.4.8-p3
- Akeneo Connector: 105.1.2
- Akeneo CE: 7.0.22
Any clarification would be greatly appreciated.
Thanks in advance for your support!