feed-me
feed-me copied to clipboard
Stock doesn't get set when importing Products/variants
Description
I'm importing products with variants. However, the stock is not being imported correctly.
Here's a screenshot from a product with variants that do have stock in the XML source file (2, 5, 1, ...)
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
Any updates on this?
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.
Merged in https://github.com/craftcms/feed-me/pull/1490 and will be included in the next release.