I made this when I didn't want to charge a flat $2.50 on all orders under 6 dollars. If a customer's total is 5 dollars, he'll pay less by adding 2 dollars to his order! Not fair to him, not fair to me. So now instead of being defined by 2 input parameters, a threshold subtotal and a fee amount, it is defined by 3. A lower threshold, an upper threshold, and a full fee amount. Below the lower threshold, the full fee amount is charged. Above the upper threshold, there is no low-order fee. Between the two, the low order fee is an affine function of the subtotal. So now it's a variable low-order fee. I currently have it on my website so that the customer is charged 22 cents for every dollar under 10 dollars. So if the subtotal is 5 dollars, he pays $1.10. If the subtotal is $9.50, he pays $0.11. This is accomplished by setting the lower threshold to 0, the upper threshold to 10, and the full fee to 2.2. Done this way, if the customer buys more, he pays more. There's never any motivation to buy something worthless to him.
I improved it all around. It also gives a description to the customer of when the low-order fee is applied, and how it is calculated, in all cases. And it doesn't use the "order total minus the shipping", which is retarded, as it includes tax and anything else added in that would add to the costs without actually making the order any bigger. It uses what it should have used from the beginning.... just the plain subtotal!
In the case that the upper threshold is stupidly less than the lower threshold, it just uses the upper threshold and ignores the higher valued lower threshold.
The one thing to note is that, call me Americocentric if you want, but I have the US dollar symbol hard-coded into it and I only did the language module for English. Like German and Spanish are the only other languages in existence, anyway. So if you want to whine to me about that, listen to the Chinese whine to you first.
More...





LinkBack URL
About LinkBacks










Bookmarks