Weight related fields are not consistent when value is 0

Derek_Morin
Shopify Expert
150 0 27

Hey guys quick problem here. Weight related fields are not consistent when value is 0. If we set a weight value to 0, grams becomes `null` instead of `0`, weight and weight_unit fields are no longer present in the product data inside the theme... and while we're at it, we can also set weight to be a negative value.

 

Can I find good APi docs somewhere about that and/or some fixes from Shopify?

Alex
Shopify Staff
Shopify Staff
1555 81 306

Hey Derek,

I cannot replicate the behaviour you're describing. Can you post your request/body/response here so I can tell if I'm missing any details?

Cheers.

0 Likes
kashyap-pant
New Member
8 0 0

While updating product via API without weight field then shopify API set the field to 0. Before update in shopify its 120. Any solution?  App is duellintegration.

0 Likes