Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stock doesn't get set when importing Products/variants #1457

Closed
bartrylant opened this issue Jun 4, 2024 · 3 comments
Closed

Stock doesn't get set when importing Products/variants #1457

bartrylant opened this issue Jun 4, 2024 · 3 comments
Labels

Comments

@bartrylant
Copy link

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 bartrylant added the bug label Jun 4, 2024
@bartrylant
Copy link
Author

Any updates on this?

@i-just
Copy link
Contributor

i-just commented Sep 3, 2024

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.

@angrybrad
Copy link
Member

Merged in #1490 and will be included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants