ALite CMS 47.5
Language: 
ALite CMS

Articles

The algorithm for calculating discounts in the module "Discounts"

14.07.2013 18:52  rating: 1  author: Support ALite CMS 

In discount options it is possible to set a set of various conditions. At use of several discounts probably hit of the same goods under some discounts simultaneously and all of them will be applied. If difficult sets of conditions are set, will check such situation is problematic. It is recommended to create simple discounts with a minimum of conditions. Then it will be simple to trace, whether the goods under some discounts can get at once.

Calculation of the sum of a discount at application of several discounts simultaneously.

  1. Discount for the fixed sum (value)
    Discounts are cumulative.
    Example:
    The initial sum - 1000 $.
    Discount 1 - 100 $.
    Discount 2 - 200 $.
    Discount calculation = 100 + 200 = 300 ($).
    The final sum - 700 $.
  2. Discount for percent from the sums (percent)

    Discounts are cumulative.
    Example:
    The initial sum - 1000 $.
    Discount 1 - 20 %.
    Discount 2 - 10 %.
    Discount calculation = 20 + 10 = 30 (%)
    The final sum - 700 $.

  3. The combined discount
    Discounts are cumulative.
    Example:
    The initial sum - 1000 $.
    Discount 1 - 10 %.
    Discount 2 - 200 $.
    Discount calculation = 1000 * 10 / 100 + 200 = 300 ($).
    The final sum - 700 $.
RSS  RSS