This commit is contained in:
Mira Weller
2024-10-01 18:34:57 +02:00
parent 4f1ee82c4f
commit 52849f8fdd
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ class CrossSellingService:
result = ( result = (
(category, (category,
self._prepare_items(None, items_qs, discount_info), self._prepare_items(None, items_qs, discount_info),
None) '')
for (category, items_qs, discount_info) in self._applicable_categories(0) for (category, items_qs, discount_info) in self._applicable_categories(0)
) )
return [(category, items, form_prefix) for (category, items, form_prefix) in result if len(items) > 0] return [(category, items, form_prefix) for (category, items, form_prefix) in result if len(items) > 0]

View File

@@ -631,7 +631,7 @@ class AddOnsStep(CartMixin, AsyncAction, TemplateFlowStep):
@cached_property @cached_property
def cross_selling_is_applicable(self): def cross_selling_is_applicable(self):
return any(len(items) > 0 for (category, items) in self.cross_selling_data) return any(len(items) > 0 for (category, items, form_prefix) in self.cross_selling_data)
@cached_property @cached_property
def cross_selling_data(self): def cross_selling_data(self):