Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to disable table rate if items weight is below 100lbs?


chimol

Recommended Posts

Hi all,

I would like to disable the table rate from showing up when the items in the shoppers cart are under 100lbs. How would I go about doing something like this? It seems like there should be some simple code to exclude the table rate from showing unless the weight in the shopping cart exceeds a specified number (like 100). I have a several large items that can ship, but don't want to have the table rate showing a cost fo $125 for shipping on something like a book or cd. I tried starting the table rate at 100lbs, but when I do..the shopping cart for items like books or CD's shows the lowest amount in the table rate.

Thanks for any help you can give me on this,

Steve

Steve

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

Link to comment
Share on other sites

Nevermind...I found out how to do it. It took a bit of searching, but it's here....thanks!

Steve

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

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Solution via Groundation:

 

 

if ( ($this->enabled == true) && ($shipping_weight <= 2) ) {

$this->enabled = false;

return;

}

 

(Put this just above the following lines)

 

return $this->quotes;

}

 

 

This disables the shipping module you put the script in ie. catalog->includes->modules->shipping->table.php

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...