Jump to content
tuk66

[MODULE] M4 Supplier discount

Recommended Posts

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

 

Needs code modification. Installation instructions are included.

Tested in PrestaShop™ versions:

1.2.0.8, 1.2.5.0

1.3.0.10, 1.3.1.1, 1.3.2.3, 1.3.3.0, 1.3.4.0, 1.3.5.0, 1.3.6.0, 1.3.7.0

1.4.0.17, 1.4.1.0, 1.4.2.5, 1.4.3.0, 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 Category 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.

 

Demo BackOffice

http://demo.presta-addons.com/back

email: admin@admin.com

password: admin777

 

 

The module is available at http://www.presta-ad...r-discount.html

Edited by tuk66

Share this post


Link to post
Share on other sites

New version of the module is available on www.presta-addons.com.

 

CHANGELOG

 

v1.1.2 (2012-05-24)

- Fixed the price on the product detail page if there are attributes (PrestaShop 1.4)

 

v1.1.1 (2011-10-02)

- Added settings for unattached supplier

Share this post


Link to post
Share on other sites

New version of the module is available on www.presta-addons.com.

 

CHANGELOG

 

v1.2.0 (2012-11-05)

- Compatible with PrestaShop v1.5

- Compatible with PrestaShop v1.4.9.0

- Fixed discount displaying in the order administration (only non-default group)

Share this post


Link to post
Share on other sites

The new version of the module is available at www.presta-addons.com. All upgrades are FREE for life.

 

CHANGELOG

 

v1.2.2 (2013-03-11)

- Fixed the installation routine in some MySQL clients in v1.5

 

v1.2.1 (2012-12-10)

- Added data of logged customer and her default group (to display on the product and/or category page)

- Fixed a bug of discount and messages displaying in v1.5

Share this post


Link to post
Share on other sites

The new version of the module is available at www.presta-addons.com. All upgrades are FREE for life.

CHANGELOG
 

v2.0.2 (2014-06-24)
- Fixed occasional Notice: Uninitialized string offset: in AdminSupplierDiscount.php on lines 277, 278, 281

v2.0.1 (2014-06-04)
- Minor code improvements

Share this post


Link to post
Share on other sites

The new version of the module is available at www.presta-addons.com. All upgrades are FREE for life.

CHANGELOG
 

v2.0.3 (2015-04-09)
- Added installation instructions for modifying the template (PrestaShop 1.6, only the use of surcharges, i.e. negative discounts)
- Fixed a bug to set discounts for all groups at once

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More