feed-me icon indicating copy to clipboard operation
feed-me copied to clipboard

Stock doesn't get set when importing Products/variants

Open bartrylant opened this issue 1 year ago • 1 comments
trafficstars

Description

I'm importing products with variants. However, the stock is not being imported correctly.

Scherm­afbeelding 133

Here's a screenshot from a product with variants that do have stock in the XML source file (2, 5, 1, ...)

Scherm­afbeelding 135 Scherm­afbeelding 136

Could it be that stock for variants is not updated when the variants are already in the inventory? (I'm checking for duplicate products based on the product sku field.)

Additional info

  • Craft version: Craft Pro 5.2.0-beta.1
  • PHP version: 8.3.3
  • Database driver & version: MySQL 8.3.0
  • Plugins & versions: Feed Me 6.1.0

bartrylant avatar Jun 04 '24 14:06 bartrylant

Any updates on this?

bartrylant avatar Jun 13 '24 13:06 bartrylant

Hi, thanks for reporting! We've raised a PR for this. It should be included in the next release.

If you'd like to test it, change your craftcms/feed-me requirement in composer.json to:

"craftcms/feed-me": "dev-bugfix/stock as 6.3.0",

and then run composer update.

i-just avatar Sep 03 '24 11:09 i-just

Merged in https://github.com/craftcms/feed-me/pull/1490 and will be included in the next release.

angrybrad avatar Sep 26 '24 00:09 angrybrad