ALite CMS 44.83
Language: 
ALite CMS

Articles

The algorithm for calculating discounts in the module "Discounts"

14.07.2013 18:52  rating: 100  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)
    At discount application the final sum each time will decrease for value of a discount.
    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)

    At the first application of a discount the sum will decrease for the specified percent, at the subsequent applications the discount percent will increase by percent of each subsequent applied discount.
    Example:
    The initial sum - 1000 $.
    Discount 1 - 20 %.
    Discount 2 - 10 %.
    Discount calculation = 20 * (1 + 10 / 100) = 22 (%)
    The final sum - 780 $.

  3. The combined discount
    At first the sum will decrease for the percent specified in a discount (discounts) for percent from the sum, then the sum specified in a discount (discounts) for the fixed sum will be subtracted from it.
    Example:
    The initial sum - 1000 $.
    Discount 1 - 10 %.
    Discount 2 - 200 $.
    Discount calculation = 1000 * 10 / 100 + 200 = 300 ($).
    The final sum - 700 $.
RSS  RSS