im currently not getting the AP flat rate error option. it is displayed in the shipping estimator ok, but not in the checkout options.
i traced the error and found the failure in tpl_checkout_shipping_default.php
appx. line 68:
the quotes array returned if for example the girth is too big is failing this test, and then not being displayed as an option.PHP Code:if ($quotes[$i]['module'] != '') { // Standard
it is because the arrays returned as $quotes in this case doesnt have $quotes[$i]['module'] set. so i tried setting it, and i realise it also doesnt have $quotes[$i]['id'] set, and also the $quotes[$i]['methods']['id] is set wrong to the $title variable rather than some code like 'flat' or 'rrp' ..
no im not really saying its definately a problem with your code as youd think something like this would have come up b4 and been fixed. but perhaps you can help me ??
here is a var_dump on the suspect $quotes:
and for reference here is a var_dump on a healthy $quotes:PHP Code:array(2) { ["icon"]=> string(137) "Aussie Post" ["methods"]=> array(1) { [0]=> array(3) { ["id"]=> string(141) "Aussie Post" ["title"]=> string(253) "Aussie Post ERROR: (31+68.00) x 2cm exceeds the Maximum 140cm girth allowed. Using AP Flat Rate." ["cost"]=> string(5) "25.00" } } }
PHP Code:array(3) { ["id"]=> string(6) "ozpost" ["module"]=> string(141) "Aussie Post" ["methods"]=> array(7) { [0]=> array(3) { ["id"]=> string(3) "RPP" ["title"]=> string(327) " Regular Parcel 1 1 days Est Delivery " ["cost"]=> float(4.35) } [1]=> array(3) { ["id"]=> string(4) "PPS5" ["title"]=> string(342) " 500gm Prepaid Satchel 1 1 days Est Delivery " ["cost"]=> float(5.7) } [2]=> array(3) { ["id"]=> string(3) "REG" ["title"]=> string(333) " Registered Parcel 2 2 days Est Delivery " ["cost"]=> float(7.15) } [3]=> array(3) { ["id"]=> string(3) "EXP" ["title"]=> string(327) " Express Parcel 1 1 days Est Delivery " ["cost"]=> float(8) } [4]=> array(3) { ["id"]=> string(5) "PPSE5" ["title"]=> string(359) " 500gm Prepaid Satchel Express 1 1 days Est Delivery " ["cost"]=> float(8) } [5]=> array(3) { ["id"]=> string(4) "RPPi" ["title"]=> string(328) " Insured Parcel 2 2 days Est Delivery " ["cost"]=> float(9.75) } [6]=> array(3) { ["id"]=> string(4) "EXPi" ["title"]=> string(330) " Insured Express 1 1 days Est Delivery " ["cost"]=> float(13.4) } } }
zencart and ozpost version is latest


Reply With Quote


