Hi Rod,

I am receiving the error:

Unexpected error (no valid methods). Using AP Flat Rate.

...when purchasing certain items via the ozpost module. This is an item that fails:

http://primealternatives.com.au/cart...products_id=45

The item is a Jumbo Bolster, it's dimensions are:
Weight: 7.92
Height: 66
Length: 24
Width: 20

The error is in the file:

/includes/modules/shipping/ozpost.php

... and is generated in the lines 504 to 513:

// check to ensure we have at least one valid quote - produce error message if not.

if (sizeof($methods) == 0 ) {

$cost = $this->_get_error_cost($dest_country) ;

if ($cost == 0) return ;

$methods[] = array( 'id' => "Error", 'title' => ' Unexpected error (no valid methods). Using AP Flat Rate.' ,'cost' => $cost ) ;
}


The module works fine on purchasing massage oil 1 litre:
http://primealternatives.com.au/cart...&products_id=7

The dimensions are:
Weight: 1
Height: 7
Length: 11
Width: 17

I checked the forum archive and it seems that another person experienced the same problem, here is the thread:

http://www.zen-cart.com/forum/showth...122637&page=12

..you provided the person a modified ozpost.php file. Will this same file fix my issue?

There are also items that are under 20kgs that are receiving the following message:

(AP excess length)

I receive this message when purchasing an item that only weighs 10kgs:

http://primealternatives.com.au/cart...products_id=64

...which is 10 litre massage oil. I believe Australia Post accepts items up to 20kgs. The dimensions for this are:

Weight: 10
Height: 30
Length: 16
Width: 24

I am also receiving the same error (AP excess length) when purchasing items that are over 20kgs and it is only charging charging the customer $25. When a customer purchases an item over 20kg, we usually send it via TNT and charge for courier costs depending on how heavy the item is and where it is going, etc. Can you recommend the best solution for this? Perhaps the easiest way is that if the item is too big, have a message for the customer saying that they will be contacted with shipping costs.

Thanks,

Steve