osCmax v2.5 User Manual
Results 1 to 2 of 2

Improved low order fee

This is a discussion on Improved low order fee within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; I made this when I didn't want to charge a flat $2.50 on all orders under 6 dollars. If a ...

      
  1. #1
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Post Improved low order fee

    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...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  2. #2
    New Member
    Join Date
    Feb 2009
    Posts
    9
    Rep Power
    0


    Default Re: Improved low order fee

    Quote Originally Posted by michael_s View Post
    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...

    Hey Michael... This question may or may not have to do with this module, not sure, thats why I'm asking.

    Do you know of a contrib that allows zero dollar amounts to be processed with OSC 2.2 RC2a? Trying to work with Gift contrib and when the order is less than the Gift amount, the order will say, cannot process zero dollar amount. Obviously, after deductions, the order is zero but if the order is not processed, neither is the coupons attempted use.

    Suggestions would be greatly appreciated... Thanks

Similar Threads

  1. Improved Order Number
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 11-20-2009, 06:52 PM
  2. order list improved 1.0 ( orders.php )
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-10-2009, 02:01 PM
  3. order list improved 1.0 ( orders.php )
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-09-2009, 07:15 AM
  4. order list improved 1.0 ( orders.php )
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-13-2008, 01:04 PM
  5. Improved Order Number
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-17-2007, 10:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •