Tuesday, February 15, 2011

Prestashop Module M4 Supplier discount

Allows to adjust discount/surcharge for every combination of supplier and customer group.

 

Needs code modification. Installation instructions are included.

Tested in PrestaShop™ versions:

  • PrestaShop™ 1.2.0.8
  • PrestaShop™ 1.2.5.0
  • PrestaShop™ 1.3.0.10
  • PrestaShop™ 1.3.1.1
  • PrestaShop™ 1.3.2.3
  • PrestaShop™ 1.3.3.0
  • PrestaShop™ 1.3.4.0
  • PrestaShop™ 1.3.5.0
  • PrestaShop™ 1.3.6.0
  • PrestaShop™ 1.3.7.0
  • PrestaShop™ 1.4.0.17
  • PrestaShop™ 1.4.1.0
  • PrestaShop™ 1.4.2.5
  • PrestaShop™ 1.4.3.0
  • PrestaShop™ 1.4.4.0

 

How do they work discounts in PrestaShop™?


The price of the product can be changed by these discounts/surcharges:
A  Catalog >> Attribute combination >> Impact on price (amount with tax)
B  Catalog >> Reduction amount (amount or percent with tax - till PrestaShop™ v1.3.7.0)
C  Catalog >> Quantity discount >> Discount value (amount or percent - till PrestaShop™ v1.3.7.0)
   or
BC Catalog >> Prices >> Specific price (PrestaShop™ v1.4.0.2 and later)
D  Group >> Reduction (percent, the highest discount on all groups to which the customer is a member - PrestaShop™ v1.2.0.8, 1.2.5.0)
   or
D  Group >> Reduction (percent, if this is the default customer's group - PrestaShop™ v1.3.0.10 and later)
 
These discounts/surcharges are calculated in order displayed. These calculations take effect on the price of the product display.
For example, if discount is 10% at any point: Price * 0.9 * 0.9 * 0.9 * 0.9 = Price * 0.6561

The Supplier discount module is classified as point E in the chain of the price calculation.
When using the module, watch out for restrictions:
- Don't use built-in discount for a group. Set discount directly in this module.
- Don't use built-in ecotax. This module is not compatible with ecotax.
- Don't use more M4 *Discount modules at once.
- For PrestaShop™ v1.4.0.2 and later only
  Discount set in this module takes precedence over the Specific price of product (specific price will be ignored if discount in this module is set).

 

The important thing is a default customer's group.
The default customer's group is part of the PrestaShop™ version 1.3.0.10 and later.
For the PrestaShop™ v1.2.0.8 and 1.2.5.0, this module determines the default customer's group as follows:
  If the customer is a member of only one group (except the group with ID=1), then this is the default customer's group.
  Otherwise, the default group is the group with ID=1 (Default).
Since the discounts/surcharges in the module are set for the group of customers, in cases of conflict is counted with those defaults.

The second category of discounts are vouchers. They are to be applied to the cart.

M4 Supplier discount Main Features







No comments:

Post a Comment