Contributions
Free Shipping with Order Count
This module provides a free shipping option when a customer order a defined number of items in the order.
Just place the freecount.php file in the includes/module/shipping directory and then install the module from the admin screens.
The following defines are required in a corresponding freecount.php file in the includes/languages/xxxx/modules directory.
define('MODULE_SHIPPING_FREECOUNT_TEXT_TITLE', 'Free Shipping');
define('MODULE_SHIPPING_FREECOUNT_TEXT_DESCRIPTION', 'Free Shipping');
define('MODULE_SHIPPING_FREECOUNT_TEXT_WAY', 'Best Way - Available with ' . MODULE_SHIPPING_FREECOUNT_ITEMS . ' or more items');
Just place the freecount.php file in the includes/module/shipping directory and then install the module from the admin screens.
Expand All / Collapse All
This is a update of Davids mod to work with MS1 and MS2
NAME: discounted_count.php
This module is a revised version of freecount.php by David Kathan. The purpose of this module is to provide a discounted shipping rate PER item after a certain number of items is purchased, along with the standard rate.
At first, I thought that my answers were solved with the Table Rate module. If you don't know already, the Table Rate mod works by means of a range. For example, if you define a range of
25: 30.00, 50: 15.00, 100: 0.00
this means that orders of 25 or less will be shipped for a FLAT rate of $30, orders or 25 to 50 will be shipped for a FLAT rate of $15, and so on.
However, I needed something that would charge a flat rate PER item and a discounted rate after a certain number of items was purchased. Fortunately, I found David's contribution.
Here's a sample scenario: You would like to charge $2.50 PER item, but would like to offer a discount rate of $1.00 after 4 items are purchased. If someone purchases 10 items, we know that the first 3 will be charged the standard rate and the additional (7) items will be charged at the discounted rate. Thus, they will be charged:
(3 x 2.50) + (7 x 1.00) = 14.50
You might be wondering why it isn't 4 x 2.50. Well the answer to that is because it's "4 or MORE items" to get the discount. However, if you don't like this idea, you can always revise my code such that discounts will be offered for "more than x items" purchased. It's up to you.
To use the module, simply copy the discounted_count.php files to their corresponding directories:
<install_dir>/includes/modules/shipping/
and
<install_dir>/includes/languages/english/modules/shipping/
Then connect to
ADMIN -> MODULES -> SHIPPING
Enable the "Discounted Count" shipping module and define the fields as follows:
1. Enable Discounted Shipping: 1 to enable the module, 0 to disable
2. Number Of Items: Minimum number of items to purchase before providing discounted shipping rate.
3. Standard Rate: Amount to charge PER item before minimum number of purchases are made.
4. Discounted Rate: Amount to charge PER item after minimum number of purchases are made.
Well, I hope that you find this mod useful. The only reason why I had to come up with this is because my client was asking me to handle the S&H in such a manner.
-Ray
PS: Thanks again to David Kathan & the osC team for letting me hack your code.
This module provides a free shipping option when a customer order a defined number of items in the order.
Just place the freecount.php file in the includes/module/shipping directory and then install the module from the admin screens.
The following defines are required in a corresponding freecount.php file in the includes/languages/xxxx/modules directory.
define('MODULE_SHIPPING_FREECOUNT_TEXT_TITLE', 'Free Shipping');
define('MODULE_SHIPPING_FREECOUNT_TEXT_DESCRIPTION', 'Free Shipping');
define('MODULE_SHIPPING_FREECOUNT_TEXT_WAY', 'Best Way - Available with ' . MODULE_SHIPPING_FREECOUNT_ITEMS . ' or more items');
Just place the freecount.php file in the includes/module/shipping directory and then install the module from the admin screens.
Note: Contributions are used at own risk.