You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using hasStock(true) on a variant query causes an SQL error:
SQLSTATE[42703]: Undefined column: 7 ERROR: column commerce_variants.hasunlimitedstock does not exist
LINE 8: WHERE (((commerce_variants.stock > 0 AND commerce_variants.h...
Workaround:
.where('stock > 0 or [[hasUnlimitedStock]]')
Additional info
Craft version: 3.4.13
Commerce version: 3.1.0.1
PHP version: 7.4.4
Database driver & version: PostgreSQL 11.7
The text was updated successfully, but these errors were encountered:
Description
Using
hasStock(true)
on a variant query causes an SQL error:Workaround:
Additional info
The text was updated successfully, but these errors were encountered: