Difficulty in fetching dimensions of the product on the store ..

Difficulty in fetching dimensions of the product on the store ..

SahilRohera
Shopify Partner
21 0 0

Please help !! ..
i just want to know
.. is there any query we do have to fetch the dimensions of a product on the shop ??

I am seeing a shippingPackageUpdate mutation in shipping and fulfilments section
... and it only does update the outside dimensions of a empty shipping package ... but i want to fetch the dimension of a product and either i am not finding any query to fetch these empty package dimensions as well.

Replies 4 (4)

YOD_Solutions
Shopify Partner
250 26 35

It depends on how you saved the dimensions. Where did you save them?

Founder @ JsRates: Custom Shipping Rates
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more about JsRates visit the JsRates home page or JsRates documentation
- Find JsRates on Shopify app store
SahilRohera
Shopify Partner
21 0 0

Yaa actually i am also not able to find that API to set the products dimensions. so how can i do this and then how to fetch those dimensions ... 

and i more thing i am not able to find where the store owner sets the product dimensions in the admin dashboard.

YOD_Solutions
Shopify Partner
250 26 35

You can save the dimensions in variant metafields.

Founder @ JsRates: Custom Shipping Rates
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more about JsRates visit the JsRates home page or JsRates documentation
- Find JsRates on Shopify app store
SahilRohera
Shopify Partner
21 0 0

can u provide me that mutation please
as i have in this productVariantCreate - https://shopify.dev/docs/api/admin-graphql/2024-01/mutations/productVariantCreate
and i didn't get here

and also i dont see any field to fetch the dimensions from this query - https://shopify.dev/docs/api/admin-graphql/2024-01/queries/productVariant