Jump to content
Latest News: (loading..)
Sign in to follow this  
Maniak777

Australian Air Express ?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

 

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


Geoff

 

Telegraph Point 2441

Australia

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

 

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


Geoff

 

Telegraph Point 2441

Australia

Share this post


Link to post
Share on other sites
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

 

 

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;

}

?>


Geoff

 

Telegraph Point 2441

Australia

Share this post


Link to post
Share on other sites
Hi Geoff, that did the trick.

 

No more tearing my hair out. :)

 

Rex

 

did this actually hide the module ?

 

any chance of the coding you used - I am having difficulty getting it to hide.

 

Geoff


Geoff

 

Telegraph Point 2441

Australia

Share this post


Link to post
Share on other sites
Hi Geoff, that did the trick.

 

No more tearing my hair out. :)

 

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


Geoff

 

Telegraph Point 2441

Australia

Share this post


Link to post
Share on other sites

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

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  

×