Magento – Magento2 : How to get product dimension units (cm/in)

magento2magento2.3product-attribute

I need to get the dimension units for width, height and length. There are solution available only to get the value of these attributes like,

$product->getTsDimensionsLength();
$product->getTsDimensionsWidth();
$product->getTsDimensionsHeight();

How can I get the dimension unit (like cm or in) for these values?

Thanks in advance.

Best Answer

Measurement unit comes from system configuration.

Stores -> Configurations -> General -> Locale Options -> Weight Unit

Please refer the link for the solution: https://magento.stackexchange.com/a/276544/55658