I've just done a search for more information regarding this problem, and apparently it is because the austpost module can't provide a valid quote on the first load because it has no way of knowing where the parcel is supposed to be delivered to, or the method of shipping that the user chooses.
This hasn't changed with the ozpost module, so the incompatibilty will still remain with the with ozpost module.
If anyone has any ideas how to overcome this I'll be more than happy to take them into consideration.
Cheers
Rod
I wonder whether Checkout Without Account (COWOA) resolves the problems:
http://www.zen-cart.com/wiki/index.p...ithout_Account
As a quick search of its forum yielded no mention of Austpost or ozpost, I will pose the question there ie http://www.zen-cart.com/forum/showthread.php?t=59189. Stay tuned.
rod, im having issues where it seems to be reverting back to default config... it may be conflict with old austpost mod, ill try uninstalling it first
I'm not sure what you mean by this. Are you saying the new module keeps losing your settings?
There is no conflict between the ozpost and austpost modules. They are completely independent of each other.
However there is no point in running them both together. The reason for making them independent was to isolate the different servers being used, and it also enabled me to continue to run the old module on our own store while developing the new code at the same time in the same place.
Cheers
Rod
ok i removed the old one and reinstalled the new one but im still having some issues where:
1- it will at times ignore my chosen methods and offer them all, and then if you go and choose 1 it doesnt add the cost at the next page.
2- it wont offer the flat rate if parameters exceed limits, ive had to hack it just to get the response:
see on line 69 of tpl_checkout_shipping_default.php:
this must be met to offer a radio button, but when your code returns from for example a length too big, the ['module'] is not set , nor is the ['id'] value, both needed from my observations.PHP Code:
if ($quotes[$i]['module'] != '') { // Standard
im currently running through your code to find out where its going wrong...
ok i worked out why its adding the disabled options, well enough to know it only happens when in debug mode....
still got the issue with error options not being available: if i make the return after error line this:
i get this :PHP Code:
print_r ($this->quotes);
return $this->quotes;
and as i mentioned its missing the 'keys' to make zencart display the errors...PHP Code:
Array ( [icon] => Aussie Post [methods] => Array ( [0] => Array ( [id] => Aussie Post [title] => Aussie Post ERROR: (30+42.00) x 2cm exceeds the Maximum 140cm girth allowed. Using AP Flat Rate. [cost] => 25.00 ) ) )
thanks once again for this mod, and heres my chunk of changes i needed to make to allow the display and choice of error flat rate postage options:
PHP Code:
// Check for maximum length allowed
if($parcellength > $MAXLENGTH_P)
{
$cost = $this->_get_error_cost($dest_country) ;
if ($cost == 0) return ;
$methods[] = array( 'id' => $this->code, 'title' => $this->title . '<font color=#FF0000> ' . $parcellength . 'cm exceeds the Maximum 105cm length allowed.</font>'. $FlatText, 'cost' => $cost ) ;
$this->quotes['icon'] = '';
$this->quotes['id'] = $this->code; $this->quotes['module'] = $this->title;
$this->quotes['methods'] = $methods; // set it
$_SESSION['_ozpost_quotes'] = $this->quotes ;
return $this->quotes;
} // exceeds AustPost maximum length. No point in continuing.
// Check girth
if($girth > $MAXGIRTH_P )
{
$cost = $this->_get_error_cost($dest_country) ;
if ($cost == 0) return ;
$methods[] = array( 'id' => $this->code, 'title' => $this->title . '<font color=#FF0000>(' . $parcelheight . "+" . $parcelwidth . ') x 2cm exceeds the Maximum 140cm girth allowed.</font>'. $FlatText, 'cost' => $cost ) ;
$this->quotes['icon'] = '';
$this->quotes['id'] = $this->code;
$this->quotes['module'] = $this->title;
$this->quotes['methods'] = $methods; // set it
$_SESSION['_ozpost_quotes'] = $this->quotes ;
return $this->quotes;
} // exceeds AustPost maximum girth. No point in continuing.
if ($parcelweight > $MAXWEIGHT_P)
{
$cost = $this->_get_error_cost($dest_country) ;
if ($cost == 0) return ;
$methods[] = array( 'id' => $this->code, 'title' => $this->title . '<font color=#FF0000>' . $sweight . 'Parcel Exceeds the 20kg Maximum allowed.</font>'. $FlatText , 'cost' => $cost ) ;
$this->quotes['icon'] = '';
$this->quotes['id'] = $this->code;
$this->quotes['module'] = $this->title;
$this->quotes['methods'] = $methods; // set it
$_SESSION['_ozpost_quotes'] = $this->quotes ;
return $this->quotes;
} // exceeds AustPost maximum weight. No point in continuing.
also, you need to look at why the nice big ozpost.jpg image/icon only shows for the error states and not the valid server quotes ... i hacked it the other way so its not shown for flat error rates but is for server quotes, but i wont bother posting that right now.... ;)
You can't say I didn't try to tell you that removing the old module wouldn't make any difference.
Strange how you are the only person so far that has reported a problem with this. No one else has had to hack the code.
I don't know a thing about what the tpl_checkout code, nor do I need to.
I'll take you word on that. As I said, as the author of the shipping module I don't need to know what the checkout module is doing and more than I need to know how any of the other modules work.
Would you also like to try to explain how or why no one else is having this problem? If *I* were you I'd be looking at something more relevent.
That is entirely up to you, but for you own sanity you still need to keep in mind that is obviously working as it should for most, if not all others.
I'm happy to help in any way I can, but like my code, I am a very logical person, and it is difficult for me to give advice or suggestions when you are seemingly going off on an illogical tangent.
Cheers
Rod
Bookmarks