Maniak777 Posted February 15, 2005 Share Posted February 15, 2005 Hi Guys, I am looking for a module that will allow me to set one rate up to 5kg then hide itself if the total order weight goes over 5kg. I kinda have it working now with a table rate but it doesn't hide and the otion is still selectable with a freight cost of $0.00 I also have a Region Table rate working on the site as well with no problems and a an in-store pick-up module working fine. Any ideas on this? Thanx in advance. Rex Quote Link to comment Share on other sites More sharing options...
Maniak777 Posted February 16, 2005 Author Share Posted February 16, 2005 Let me explain myself better. I have 2 shipping methods: Fastway Couriers (Table Rate with Zones) and AAE up to 5kg. If a customer order totals to 3kg they will have the option of using either freight company. If the customers order totals 6kg then I don't want them to see AAE as sure enough they will select it and I can't send 6KG in a 5Kg Satchel. I have tried a bit of coding in the PHP file I am using for AAE but nothing seems to work. I'm sure someone out there has a shipping module that sets the module false if total order weight > 5. Any help is very much appreciated :) Rex Quote Link to comment Share on other sites More sharing options...
Maniak777 Posted February 18, 2005 Author Share Posted February 18, 2005 So no one knows how to hide a module based on weight? Quote Link to comment Share on other sites More sharing options...
Maniak777 Posted February 22, 2005 Author Share Posted February 22, 2005 Bump Quote Link to comment Share on other sites More sharing options...
geoffwin Posted February 23, 2005 Share Posted February 23, 2005 Bump <{POST_SNAPBACK}> I understand that if the shipping option is available to an area thru your setup then it cannot be hidden. You basically need to set the shipping to an amount that won't be selected by the purchaser Geoff Quote Geoff Telegraph Point 2441 Australia Link to comment Share on other sites More sharing options...
Maniak777 Posted February 23, 2005 Author Share Posted February 23, 2005 Somthing like this? 5:20,1000:1000000 Surely there is a better way. This makes more sense and is what I am trying to achieve. Obviously with a shipping module and not a payment module. Quote Link to comment Share on other sites More sharing options...
geoffwin Posted February 23, 2005 Share Posted February 23, 2005 Somthing like this? 5:20,1000:1000000 Surely there is a better way. This makes more sense and is what I am trying to achieve. Obviously with a shipping module and not a payment module. <{POST_SNAPBACK}> you could always change the very similar looking code in the shipping module to do the same as this. eg line 6 in table.php make reference to the weight. Bit of code change might / should give similar outcome. I am a trial and error person and don't wish to break my shop just yet :-) Geoff Quote Geoff Telegraph Point 2441 Australia Link to comment Share on other sites More sharing options...
geoffwin Posted February 23, 2005 Share Posted February 23, 2005 you could always change the very similar looking code in the shipping module to do the same as this. eg line 6 in table.php make reference to the weight. Bit of code change might / should give similar outcome. I am a trial and error person and don't wish to break my shop just yet :-) Geoff <{POST_SNAPBACK}> eg - THIS IS OFF THE TOP OF THE HEAD using the same process in the example you quoted - replace line 26 with this statement <?php $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false); if ( ($this->enabled == true) && ($shipping_weight->info['total'] >= 100) ) { $this->enabled = false; } ?> Quote Geoff Telegraph Point 2441 Australia Link to comment Share on other sites More sharing options...
Maniak777 Posted February 24, 2005 Author Share Posted February 24, 2005 Thanks Geoff, I'll have a play with this on the weekend. :) Quote Link to comment Share on other sites More sharing options...
Maniak777 Posted February 25, 2005 Author Share Posted February 25, 2005 Hi Geoff, that did the trick. No more tearing my hair out. :) Quote Link to comment Share on other sites More sharing options...
geoffwin Posted February 26, 2005 Share Posted February 26, 2005 Hi Geoff, that did the trick. No more tearing my hair out. :) <{POST_SNAPBACK}> Great now I will probably use it :-) Geoff Quote Geoff Telegraph Point 2441 Australia Link to comment Share on other sites More sharing options...
geoffwin Posted March 8, 2005 Share Posted March 8, 2005 Hi Geoff, that did the trick. No more tearing my hair out. :) <{POST_SNAPBACK}> Rex did this actually hide the module ? any chance of the coding you used - I am having difficulty getting it to hide. Geoff Quote Geoff Telegraph Point 2441 Australia Link to comment Share on other sites More sharing options...
geoffwin Posted March 8, 2005 Share Posted March 8, 2005 Hi Geoff, that did the trick. No more tearing my hair out. :) <{POST_SNAPBACK}> Rex here is what I am putting in but the option is not "disappearing" $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false); if ( ($this->enabled == true) && ($shipping_weight->info['total'] >= 3) ) { $this->enabled = false; } I do not want it available if the weight is greater then 3 kg Geoff Quote Geoff Telegraph Point 2441 Australia Link to comment Share on other sites More sharing options...
Guest Posted July 22, 2005 Share Posted July 22, 2005 Did you get this module working. I would like the option of AAE. But I am a bit daunted at creating my own module from scratch Quote Link to comment Share on other sites More sharing options...
Snowman Posted February 18, 2006 Share Posted February 18, 2006 I know this is an old topic but if you are interested in developing an AAE shipping module please PM me, i can certainly help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.