0

Im using shipping method "Weight vs. Destination". For this all items need to have a weight. I can bulk update the weight for all the products but i cant bulk update the flag "This item has weight".

I searched online and found some articles but none of them have a clear solution. Kindly help.

1
  • 1
    Maybe can we bulk update this in the database as i noticed that it is stored as "1" for product_has_weight variable.
    – Thowzif
    Commented Nov 13, 2019 at 7:52

1 Answer 1

0

I finally found out that there is no easier way to do this. The only easier way this can be done is to replace directly in the database.

The other workaround for this is to change the values from 0 to 1 for all the instances of product_has_weight in the below to files.

.\vendor\magento\module-catalog\Ui\DataProvider\Product\Form\Modifier\General.php
.\vendor\magento\module-catalog\Model\Product\Edit\WeightResolver.php

Finally go to Catalog->Products in Magento admin and bulk update(you dont have to change anything, just click update) all the product you want to change. Thanks it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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