Jump to content
Sign in to follow this  
chimol

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

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!

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

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

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  

×