craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
288 stars 139 forks source link

Product Variant status set to false after update #1304

Closed joshparylak closed 1 year ago

joshparylak commented 1 year ago

Description

We recently updated our site from Craft 3.7.11 to 3.8.7, Commerce 3.4.2 to 3.4.20.1, Feed Me 4.4.0 to 4.6.2.

We had regular product imports running on the site without issue. The imports used a column with a value of 0 or 1 to set product status, and then the variant field 'enabled' was set to 'Use default value', with the default dropdown set to enabled. All products in our store have a single default variant.

This process was working until these updates. After we ran the updates, the next import set all product variants touched by the import enabled field to 0, preventing them from being added to carts.

I updated the import to use the status column in our import on the variant enabled field so it's being passed an explicit 1 or zero. This has restored all the products, so the issue is resolved for us by no longer using the 'use default value' option, but that functionality appears to be broken by one of these updates.

Additional info

i-just commented 1 year ago

Hi, thanks for reporting! I raised a PR for it.

jakelapan commented 1 year ago

I am also experiencing this issue

angrybrad commented 1 year ago

Resolved in https://github.com/craftcms/feed-me/pull/1305 for the next v4 and v5 releases

angrybrad commented 1 year ago

We just released Feed Me 4.6.3. and 5.1.3 with this fix.