Magento – Product dimensions in Magento 2.2.5 update

attributescartcheckoutmagento2

I have installed Magento 2.2.5 locally with sample data.

Now three new attributes Length, Width, Height Added. These are the default attributes, created by Magento 2.2.5 or by some third party extensions.

And how to get these attribute values Cart/Checkout.

Best Answer

The attributes ts_dimensions_length / ts_dimensions_width / ts_dimensions_height are part of the Temando_Shipping module that ships with Magento 2.

[ Source: Line 32 - 34 in vendor/temando/module-shipping-m2/Setup/SetupData.php ]

Line 32 - 34 Temando_Shipping SetupData.php

You should be able to get their values by using the code snippet below:

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