Shipping Quote based on Per Cent of Total Order

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)
—–
$8.95

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.

Get it

You can download this at the official osCommerce add-ons site.

Beer Me!

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!

Version 2 of Gift Vouchers and Discount Coupons (MS2, RC1, RC2)

STOP PRESS: This contribution is now updated to Version 5 and has all sorts of cool extras. Please see the latest post about this.

I wanted to give an update on where the GV DC contribution presently stands.  It’s been updated to Version 2.

Version 2 works with;

  • osCommerce MS2
  • osCommerce MS2 (060817)
  • osCommerce RC1
  • osCommerce RC2
  • osCommerce RC2a

Version 2 also deal with Tax properly, which was problematic with Version 1.x

Due to the number of problems that people had installing Version 1.x – I haver decided at the moment to offer this contribution only as an installable service.  The cost of an install is a usually about $50 and my guarantee is that it will work as it is intended to, or you receive a full refund.

So, if you want to have a Discount Coupon system in YOUR osCommerce store that DOES work with Tax calculations and is coded very cleanly, please contact me on oscshops@gmail.com and we can go from there.  Install can be made on ANY osCommerce store, whether it is a Template Monster templated store, a highly modified store or even a brand new install.

If you do not want to pay me too install

That’s not a problem – the older version is readily available at the osCommerce Contributions area.  And you can install it yourself, make any changes to it etc.

Vouchers, Tax and Open Source

My discount contribution is a great success – it’s been downloaded thousands of times and I’ve installed it on at least 20 live shops.  But it has/had a glaring ommission – TAX – and for a good reason…

However, people like to say things such as;

I was just wondering why the tax calculation has been left out again and was upset about it as it seems most coupon/voucher script coders forget about it.

Well, it wasn’t forgotten about – it’s just that us coders who make FREE contributions like to get them out of the door in the hope that someone would take up the challenge and make it work for their particular situation.  After all, if every Open Source coder waited until the product was absolutely perfect, there would be no Open Source, at all, ever.

So, I decided to make it happen.

The Voucher system has been updated and now reflects the proper tax settings within your Live Shop…here’s an example:

In the example, you can see the Total Cart amount is $90, with a coupon amount of 10%, making a deduction of $9.  Leaving $81 to pay.  Florida Tax is 7.0%, so 7.0% of $81 is $5.67.  Shipping costs $5 – so the total to pay is $91.67.

Before the updated codebase, the contribution would have worked like this:

Sub Total: $90.00
Coupon:  -$9.00
Shipping:  $5.00
FL Tax 7.0%: $6.30 (that’s 7.0% of $90, it was disregarding the coupon reduction)
Total (to pay): $92.30

I hope that this is now suitable for all those who wanted Tax Calculations inbuilt but did not have the opportunity to take the code and make it themselves!

Of course, I still have to do some more testing, but I think that it works quite solidly as it is.  Once I have tested it to my satisfaction, I will make it available.  If you want/need it urgently in the meantime, please contact me.

Featured Products in osCommerce

One of the very finest things you can do to make your customers experience better is to point them at your special offers and featured products.

In standard osCommerce, the “New Products” box on the first page is pretty useless – it’s just a list of the latest 9 products added. My idea is to use that box to show “Featured Products” instead – so I set about finding a cleanly coded solution.

Guess what? I couldn’t find one.

Sure, there are a few “featured” contributions, but all of them are rather clunkily coded (including one I made many years ago)! So, I set about recoding a few files to make adding featured products really easy.

Have a look at the video below;

Basically, my idea is to have a “flag” to set the featured status or not (in eaxctly the same way that you use it to set the product in or out of stock). This makes it really easy to set a product featured.

My other thought was to use the existing “New Products” box ratyer than have to code a new one – so I did!

The result is a cleanly coded “Featured Products” contribution that sticks to osCommerce coding convention and is easy to install. Just a few drop-in files if you install a new store, and if you have an existing store, just a few lines of code to add to a few files;

  • /admin/categories.php
  • /admin/includes/languages/english/categories.php (and obviously german etc)
  • /admin/includes/functions/general.php
  • /includes/modules/new_products.php

And that is it! I will zip it up and add it to the contributions area later on.

Discount Vouchers for MS2 + Installation Service

All, I just found enough time to test out an install of the DC GV Contribution for RC1 and RC2, but onto MS2-060817.  It installed very well, and so I can now say that if you FOLLOW INSTRUCTIONS closely, you should be able to get your MS2 up and running with DC GV within less than half an hour.

If you have a very modified version of osCommerce, it might take you much longer!

I can offer an installation service if anyone is interested.  The charge for this will be $50 – if I cannot install it and get it working as per the instructions, you will get a FULL REFUND, no questions asked.  If you are interested, please send me an email, my email address is up there ^

I also can now offer this service for RC1, RC2 and RC2a, whether or not you have contributions installed.

Version 1.1 of Discount Coupons and Gift Vouchers for RC osCommerce

Just a quick post to let readers know that I have released version 1.1 of my Discount Coupons and Gift Vouchers contribution for RC releases of osCommerce.

This version fixes 1 bug in checkout_confirmation.php and includes a whole file that I forgot to include in the first version – checkout_process.php

http://addons.oscommerce.com/info/5743

For discussion/support, please see my original post about this.

Gift Vouchers RC1 and RC2

STOP PRESS: This contribution is now updated to Version 5 and has all sorts of cool extras. Please see the latest post about this.

Offering Gift Vouchers/Discounts is an excellent way to make sales, particularly on products where margins are high. A good example of this is “digital products” where (more than likely) margin is probably 100% of the sale amount.

By offering a 50% or more Discount Coupon, vendor is still making a good amount and the buyer has a bargain.

new client required the ability to offer Gift Vouchers and Discounts on the latest version of osCommerce which is called “RC1”. After having a hunt through the Contributions area yesterday, I could not find anything that was suitable in terms of;

  • usable on RC1
  • easy to use for “not web savvy” person
  • coded cleanly

So, I went back to the drawing board and coded my own – based on some work I did years ago. With just a few lines of code I’ve now got a really nice Gift Vouchers package suitable for the latest version of osCommerce.

It’s usable with RC1 and RC2 – I do have a MS2 version somewhere also. Anyone who wants it, please comment below and I will make time to turn it into a freely available contribution.

Added Screenshot showing Sort Orders (that work for me):