ant-hq / magento-module

MIT License
0 stars 0 forks source link

Webhooks for configurable products are setting manage stock to false, it should be looking at the child products to see if the product should manage stock #20

Open achadee opened 5 years ago

achadee commented 5 years ago

https://github.com/ant-hq/magento-module/blob/2b7d91cfbc14d4dc90b1b0b35f5a4b5e875354b8/ant_api/app/code/community/Ant/Api/Helper/Data.php#L625-L631

This is a simple fix that is causing us a lot of grief. I think I got the right lines above. Its looking at the manage stock field of the configurable product, when it should be looking at the variant product (we don't store both in Ant).

A simple fix, if any variants have manage stock set to true, flag the product as manage stock

achadee commented 5 years ago

this also causes data to be corrupted when an update comes through from ant here: https://github.com/ant-hq/magento-module/issues/2