質問

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.

役に立ちましたか?

解決

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 all the product you want to change. Thanks it.

ライセンス: CC-BY-SA帰属
所属していません magento.stackexchange
scroll top