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.

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

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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