How is the Austpost Shipping Module Called ?
How is the Austpost free Shipping Module Called ? i.e. austpost.php
Parts of it seem to get called twice unnecessarily.
For example the function quote() on about line 73, gets called twice. I placed an echo debug at the top of this function which demonstrated that it was called twice.
function quote($method = '') {
echo " TEST DEBUG Quote() : ";
Also the main loop that goes through the cart also seems to get called twice unnecessarily. i.e. the For Next loop that starts about line 156.
for($x = 0 ; $x < count($order->products) ; $x++ ) {
Thus when I debug the code, I'm getting double debug statements everywhere.
It just seems strange and somewhat redundant and inefficient. Thus that's why I'm wondering what the calling module is and or where the function Quote() is called from ?
Any ideas ? It would be nice to get just one debug statement instead of two.
Re: How is the Austpost Shipping Module Called ?
OK to clarify it was in context of using the Shipping Estimator. I've since found shipping_estimator.php to be the script that calls the Quote() function in AustPost.php I'm speculating that if one selects a non standard or non default shipping option ( perhaps like Express Post etc... ) in the AustPost module, this extra call to Quote() function overrides the previous default call that I presume might be used for regular parcel post with no customer options selected. Thus I'm not sure if this is a code optimisation issue or not.