문제

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