Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Australian Air Express ?


Maniak777

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

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

  • 2 weeks later...
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

Link to comment
Share on other sites

  • 4 months later...
  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...