We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It looks like inventoryTracked field is not being set correctly when querying variants.
inventoryTracked
$variant = \craft\commerce\elements\Variant::find()->inventoryTracked(true)->one()
$variant->inventoryTracked
inventoryTracked should be true.
inventoryTracked is false.
5.0@beta.5
Branch 5.0
8.2
No response
MySQL
The text was updated successfully, but these errors were encountered:
FIxed #3400 inventoryTracked query param
2de13df
Thanks for reporting, this is fixed for the next release.
To get the fix early, change your craftcms/commerce requirement in composer.json to:
craftcms/commerce
"require": { "craftcms/commerce": "5.0.x-dev#2de13df98e9b8a26faca4deb541e10db8f540556 as 5.0.0-beta.1", "...": "..." }
Then run composer update.
composer update
Will update here once the next release is out.
Sorry, something went wrong.
No branches or pull requests
What happened?
Description
It looks like
inventoryTracked
field is not being set correctly when querying variants.Steps to reproduce
$variant = \craft\commerce\elements\Variant::find()->inventoryTracked(true)->one()
$variant->inventoryTracked
is false.Expected behavior
inventoryTracked
should be true.Actual behavior
inventoryTracked
is false.Craft CMS version
5.0@beta.5
Craft Commerce version
Branch 5.0
PHP version
8.2
Operating system and version
No response
Database type and version
MySQL
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: