Discounts in Shuup¶
Shuup provides two ways to give discounts for products.
second being the
Both of these function very differently and are explained in this document.
PricingModule, there can be multiple
modules which provide discounts to the product at any given time.
This module directly modifies the given
There is currently one implementation using the
To determine if a campaign should be applied, Shuup looks for the filters and conditions for the campaign. If a matching campaign is found, an effect will be applied.
CatalogCampaignModule directly applies
discounts to products when browsing the catalog. If a catalog campaign matches,
it usually matches everywhere in the shop, basket and catalog.
To determine if a catalog campaign matches, Shuup looks for filters and conditions
CatalogFilter can filter product querysets
and matches directly to product properties.
based on context. This is handy if you need to give a discount for
a certain customer group or something that is available in context.
A campaign that affects only the products in basket. Shuup checks basket conditions to see if a basket campaign should be applied. Basket campaigns can also require a coupon to activate.
BasketCondition matches the
basket contents to activate. For example, basket campaigns can use basket
conditions to check the number of products in the customer basket to
determine if the campaign should apply.
Basket Discount Effects¶
the basket contents to activate. This effect returns a discount amount
value that can be used to create a new line for example.