In the past few days I noticed a couple of people wanting to charge postage based on a percentage of the total order amount.
I’ve not come across any pre-existing code that enables this in a correct way – I do know of a `hack` to the “products weight” field, but the problem with that is obvious – what happens if a shop owner wants to use the weight feature of the products? There’s probably other contributions but I like to make my own if I can.
So, I decided to spend a little time making my own “Percentage Shipping” contribution…
Introducing the “Club osCommerce % Shipping Module”
Snazzy name, eh? OK, so basically, in your admin area, you enable the “percent” shipping method and input the % rate you wish to charge – the default value is 10.00%. You can also add a “handling charge” if you need to – the default rate for this is zero.
Have a look at this video
It’s kind of hard to see, but in the admin, I set the rate to 10.00% with a 4.95 handling charge. I then checked out a $39.99 product, and got a shipping quote of $8.95 – this being
$4.00 (10% of $39.99, rounded up)
$4.95 (handling charge)
There you have it. A nice easy contribution that will allow you to use shipping based on the value of the order. If you want to make changes to it, please go right ahead. If you want to change the wording, this is done in the LANGUAGE file that is a part of the download.
You can download this at the official osCommerce add-ons site.
I would really appreciate it if anyone who uses this module would “buy me a beer” – the “beers” that I receive allow me to spend more time creating osCommerce add-ons etc – cheers, santÃ©, prost!