fix: website showing disabled items in product list

This commit is contained in:
thefalconx33
2019-12-09 17:03:32 +05:30
parent 1e2be32860
commit f092e68a58

View File

@@ -335,8 +335,10 @@ def get_items(filters=None, search=None):
search_condition = get_conditions(or_filters, 'or')
filter_condition = get_conditions(filters, 'and')
where_conditions = 'disabled = 0 and '
where_conditions = ' and '.join(
where_conditions += ' and '.join(
[condition for condition in [show_in_website_condition, search_condition, filter_condition] if condition]
)