Settings form

This project is not covered by Drupal’s security advisory policy.

This module adds quantity discounts to the eCommerce module. So far it works with eCommerce v3. Adapted from the role_discount module.

REQUIRES PHP5.

Usage

Install the module, and go to /admin/ecsettings/quantity_discount to set up discounts. After install, all discounts are named "Discount 1", "Discount 2", etc. Click on each discount name to expand the configuration form, where you can rename these to anything you like (say, "T-shirt discounts") and specify the discount rules.

Discounts are set up with a minimum number of items and the discount (percentage or fixed amount) that applies when those items are added to the cart.

If a quantity discount starts with a number of items other that zero, that's the minimum that can be ordered **this is not yet validated**.

For example, take the following quantity discount:

   100  percentage 7%
   500  percentage 8%
   750  percentage 9%

then the minimum quantity of this item that can be ordered is 100; when ordering 100-499 items, there is a 7% discount; for 500-749 items there will be an 8% discount, and from 750 items onward, a 9% discount will apply.

Notes

  • The first row in the qdiscount can be 0%, as can the first number of items.
  • These are all DISCOUNTS, there is no way to increase the price depending on amount ordered.
  • The total discounts show up in the shopping cart; they are not refreshed onscreen as the user types in an amount to order.

Project information

Releases