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

[5.x]: Stock does not save the first time after creating new product variant #15687

Closed
WHITE-developer opened this issue Sep 6, 2024 · 1 comment
Labels

Comments

@WHITE-developer
Copy link

What happened?

Description

When creating a new product variant and directly adding stock to it. It does not save the stock the first time.

Steps to reproduce

  1. Go to a product
  2. Click on 'New Product variant'
  3. Turn on the 'Inventory' switch and directly set the stock to 1
  4. Click on 'Create product variant'
  5. There are now changes made in the product entry, so click on 'Save and continue editing'
  6. After the reload, the stock of the newly created variant is back to 0 again.

Expected behavior

The stock in the newly created variant is saved correctly

Actual behavior

Craft CMS version

5.3.4

PHP version

8.3.8

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

@WHITE-developer
Copy link
Author

Should have created this issue in the commerce Repository...
Copied it to there (craftcms/commerce#3661) and closing this one.

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

1 participant