We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 474ae09 commit 275b8b9Copy full SHA for 275b8b9
resources/js/shopify/alpine.js
@@ -158,7 +158,7 @@ const createData = (Alpine) => {
158
},
159
160
outOfStock(variant) {
161
- return variant.inventory_policy == 'deny' && variant.inventory_quantity <= 0;
+ return variant.inventory_policy && (variant.inventory_policy.toLowerCase() == 'deny') && (variant.inventory_quantity <= 0);
162
163
164
variantExistsAndIsInStock() {
0 commit comments