From 7d6b2d6df87a1a4aa5fc6e96cca350a16bce0dbd Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Wed, 2 Oct 2024 09:31:59 +0200 Subject: [PATCH] better description for CROSS_SELLING_CONDITION=discounts --- doc/api/resources/categories.rst | 8 ++++---- src/pretix/base/models/items.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/resources/categories.rst b/doc/api/resources/categories.rst index 950e7f5de..87ff1d831 100644 --- a/doc/api/resources/categories.rst +++ b/doc/api/resources/categories.rst @@ -29,11 +29,11 @@ cross_selling_mode string If ``null``, cr If ``"both"``, it is visible on the normal index page as well. cross_selling_condition string Only relevant if ``cross_selling_mode`` is not ``null``. - If ``"always"``, Always show in cross-selling step. - If ``"products"``, Only if the cart contains one of + If ``"always"``, always show in cross-selling step. + If ``"products"``, only show if the cart contains one of these products. - If ``"discounts"``, Only show products affected by - discount rules. + If ``"discounts"``, only show products that qualify for + a discount according to discount rules. cross_selling_match_products list of integer Only relevant if ``cross_selling_condition`` is ``"products"``. Internal ID of the items of which at least one needs to be in the cart for this category to diff --git a/src/pretix/base/models/items.py b/src/pretix/base/models/items.py index c65234537..9bf1a4d1a 100644 --- a/src/pretix/base/models/items.py +++ b/src/pretix/base/models/items.py @@ -123,7 +123,7 @@ class ItemCategory(LoggedModel): CROSS_SELLING_CONDITION = ( ('always', _('Always show in cross-selling step')), ('products', _('Only if the cart contains one of these products')), - ('discounts', _('Only show products affected by discount rules')), + ('discounts', _('Only show products that qualify for a discount according to discount rules')), ) cross_selling_condition = models.CharField( verbose_name=_("Cross-selling condition"),