Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using table rate and UPS shipping together except...


4girlsandaguy

Recommended Posts

I have googled this all day and can't figure out how or if you can do this.

 

I want to use both a table rate and UPS shipping together.  However what I need it to do is once my table rate reaches a certain weight (in my case 2lbs), I do not want it to show the table rate option any more, just UPS pricing.  

 

I thought I had done this a couple of versions ago but can't figure it out to same my life now.

 

Thanks in advance.

 

Jason

Link to comment
Share on other sites

You need to edit the table rate code in the enable section to check the weight. If it is above the limit you want, then return not enabled.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I found the answer and wanted to post for others.

 

Answer  below:

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...