4girlsandaguy Posted April 9, 2015 Share Posted April 9, 2015 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 More sharing options...
Jack_mcs Posted April 9, 2015 Share Posted April 9, 2015 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 More sharing options...
4girlsandaguy Posted April 10, 2015 Author Share Posted April 10, 2015 I have searched the code but do not find the line I need to change. Can you point it out to me? Link to comment Share on other sites More sharing options...
4girlsandaguy Posted April 13, 2015 Author Share Posted April 13, 2015 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 More sharing options...
Jack_mcs Posted April 13, 2015 Share Posted April 13, 2015 It should be: return false; 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.