Skip to content

Commit

Permalink
fix: variants are not listing
Browse files Browse the repository at this point in the history
  • Loading branch information
qasimgulzar committed Sep 19, 2024
1 parent 122996b commit dd57de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/catalogue/templatetags/primzel_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _get_variant_descriptors(product):
else:
num_in_stock = 0 # Handle the case where no stock record exists

if num_in_stock > 0:
if num_in_stock > 0 or not product.product_class.track_stock:
for attribute_value in ProductAttributeValue.objects.filter(product=child).select_related('product', 'attribute'):
attribute_name, value = attribute_value.attribute.name, attribute_value.value

Expand Down

0 comments on commit dd57de8

Please sign in to comment.