7

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.

2
  • you will need an extension for this Mar 1, 2019 at 12:21
  • @PhilippSander Since we can get the unit of weight (kgs/lbs), why is this not possible using built-in methods? Mar 1, 2019 at 12:27

1 Answer 1

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.