better description for CROSS_SELLING_CONDITION=discounts

This commit is contained in:
Mira Weller
2024-10-02 09:31:59 +02:00
parent d4f997c345
commit 7d6b2d6df8
2 changed files with 5 additions and 5 deletions

View File

@@ -29,11 +29,11 @@ cross_selling_mode string If ``null``, cr
If ``"both"``, it is visible on the normal index page If ``"both"``, it is visible on the normal index page
as well. as well.
cross_selling_condition string Only relevant if ``cross_selling_mode`` is not ``null``. cross_selling_condition string Only relevant if ``cross_selling_mode`` is not ``null``.
If ``"always"``, Always show in cross-selling step. If ``"always"``, always show in cross-selling step.
If ``"products"``, Only if the cart contains one of If ``"products"``, only show if the cart contains one of
these products. these products.
If ``"discounts"``, Only show products affected by If ``"discounts"``, only show products that qualify for
discount rules. a discount according to discount rules.
cross_selling_match_products list of integer Only relevant if ``cross_selling_condition`` is cross_selling_match_products list of integer Only relevant if ``cross_selling_condition`` is
``"products"``. Internal ID of the items of which at ``"products"``. Internal ID of the items of which at
least one needs to be in the cart for this category to least one needs to be in the cart for this category to

View File

@@ -123,7 +123,7 @@ class ItemCategory(LoggedModel):
CROSS_SELLING_CONDITION = ( CROSS_SELLING_CONDITION = (
('always', _('Always show in cross-selling step')), ('always', _('Always show in cross-selling step')),
('products', _('Only if the cart contains one of these products')), ('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( cross_selling_condition = models.CharField(
verbose_name=_("Cross-selling condition"), verbose_name=_("Cross-selling condition"),