Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Flat shipping for specific product when x pounds


chimol

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!

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...