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
Using this in twig:
{% set sale = craft.products().hasVariant({ hasSales: true }).all() %}
Causes:
Column not found: 1054 Unknown column 'commerce_products.promotable' in 'where clause'
Caused by this line
commerce/src/elements/db/VariantQuery.php
Line 493 in 37c8af2
Add example to twig and refresh page.
Should work i guess or should be another way of getting products/variants on sale.
5.1.1
5.0.3
No response
The text was updated successfully, but these errors were encountered:
PT-1703 [5.x]: Unknown column 'commerce_products.promotable' in 'where clause'
Sorry, something went wrong.
6f5ea9a
Thanks for reporting.
This has been 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.x-dev#d3f822b6a0e898b06a7590432f1acb22e9a38530 as 5.0.3", "...": "..." }
Then run composer update.
composer update
I will let you know here once the release is out.
lukeholder
No branches or pull requests
What happened?
Description
Using this in twig:
{% set sale = craft.products().hasVariant({ hasSales: true }).all() %}
Causes:
Column not found: 1054 Unknown column 'commerce_products.promotable' in 'where clause'
Caused by this line
commerce/src/elements/db/VariantQuery.php
Line 493 in 37c8af2
Steps to reproduce
Add example to twig and refresh page.
Expected behavior
Should work i guess or should be another way of getting products/variants on sale.
Actual behavior
Craft CMS version
5.1.1
Craft Commerce version
5.0.3
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: