Logo

How to set up product dimensions in Magento 2

Step-by-step guide to setting up how to product dimensions in Magento 2.

2 min readUpdated May 15, 2024

You can add product dimensions to Magento 2, which Starshipit then reads on import and uses for rates at checkout. Magento 2 uses an attribute system to manage product information like size and colour. To use dimensions in Starshipit you'll need to create custom attributes in your Magento 2 settings.

How it works

To start, you will need to create the following custom attributes in Magento 2:

  • Length
  • Height
  • Width

Note: Ensure you follow the exact spelling. Capitalisation (Length vs length) doesn’t matter.

Add a custom attribute in Magento 2

  1. Go to the Admin Panel.
  2. Click Stores.
  3. Click Attributes.
  4. Click Product.
  5. Click Add Attribute.
  6. Click Create New Attribute.
  7. Set the name of the attribute in the field Attribute Label as Length.
  8. Leave the Catalog input Type as "Text Field".
  9. You don't need to change the Required toggle.
  10. Click Save Attribute.

Repeat the above steps to create attributes for Height and Width.

Notes

  • All custom attributes created for one product will be created for all products as empty fields. If the fields are empty or if you set a non-numeric character in the dimension, then it will assume zero when getting rates.
  • Once the attributes are created, it will start working next time a customer adds this product to their shopping cart.
  • If your dimensions aren’t pulling through, change the attribute code to all lower case.
  • When importing orders from Magento 2, the dimensions come through to Starshipit in meters (m).
  • When you open an order, you’ll see the imported dimension converted according to the Display Sizes Unit you’ve set in Settings > Options.

Was this article helpful?

Related Articles