chimol Posted January 29, 2010 Share Posted January 29, 2010 Hi all, I was wondering if there is a way to show a specific flat rate for a product that is a certain number of pounds. Say for instance, most products shipping is automatically figured out, until the 120-130pd threshold is hit; then the site will say you need to contact me for shipping info. I would like to be able to show a freight charge for an item if they decide to add it to the cart...lets say a table for instance, most of them have a flat rate of X number of dollars. I would just like to be able to show that...I had a thought for a specific pound number like 333pds would activate the flat rate charge table and show the shopper X for shipping of that item. Does something like this sound feasible? Thanks all, Steve Quote Steve I appreciate all the help that everyone on this site has given me! Link to comment Share on other sites More sharing options...
web-project Posted January 31, 2010 Share Posted January 31, 2010 (edited) you can enable 2 shipping methods on your oscommerce, but use some restrictions: for orders more than 333pd: class your-shipping-method{ var $code, $title, $description, $enabled, $num_zones; // class constructor function your-shipping-method() { global $order, $total_weight; // add this line SHIPPING MODULE CODE if ($total_weight < 333) { //add this code $this->enabled = false; //add this code } //add this code } //bracket of function your-shipping-method and the second module for orders less 333pd: class your-shipping-method{ var $code, $title, $description, $enabled, $num_zones; // class constructor function your-shipping-method() { global $order, $total_weight; // add this line SHIPPING MODULE CODE if ($total_weight > 333) { //add this code $this->enabled = false; //add this code } //add this code } //bracket of function your-shipping-method I hope the above code will help. Edited January 31, 2010 by web-project Quote Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.