Jump to content
Sign in to follow this  
chimol

Flat shipping for specific product when x pounds

Recommended Posts

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


Steve

I appreciate all the help that everyone on this site has given me!

Share this post


Link to post
Share on other sites

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 by web-project

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×