About Club osCommerce

Showcasing osCommerce…the good, the bad and the ugly!

Follow osc_pro on Twitter

HAZMAT Handling Fee in osCommerce

Written By Gary on Jul 07 2010 · Comments (0) Follow osc_pro on Twitter

This morning I came up with the code to enable HAZMAT Handling Fees in osCommerce. My idea was to allow the Shop Owner to set individual products to be "Hazardous" or not. If they are Hazardous then a Handling Charge is introduced at the checkout_confirmation page.

Step 1 was to create the extras needed in the product adding/editing page;

Step 2 was to code up the HAZMAT Order Total module;

Step 3 was to link the two together to show at the confirmation screen;

Not too difficult. Obviously there were extra things to do such as creating functions and changing the cart class slightly, as well as making language definitions. Here is the finished layout, so you can see how complicated even a little job can be;

All in all, a nice and easy code chop up, ready to rock and roll on your osCommerce site. I don't do "contributions", I only do "commercial" – so if you are interested in getting this, please email me to discuss rates.


Buy Gary A Beer?
Buying me a "beer" helps me to keep my contributions updated and keep this blog alive - and you get a link from my homepage to your site. Cheers!


No Comments

No comments yet.

Leave a comment

RSS feed for comments on this post

Hot 100 osCommerce Shops

View the osCommerce HOT 100These are the best looking, most exceptional osCommerce Stores as voted for by you.

New to osCommerce - get inspiration from these beautiful shops. Reckon your site has what it takes to become a member of the HOT 100? Submit it!