Thanks for your help here Rod, it's much appreciated... :)
Doh!Also, "$quote->cost = $quote->cost - $quote->cost + 2.95 ; //<-- Take off the value of the original postage cost and add the SoD value" could be more easily expressed as "$quote->cost = 2.95"
Hey, but... I was under pressure... and I wasn't thinking clearly... and my brain hurt from PHP code... and... and... and...
Yeah, as soon as I read your comment, it was a forehead slapping moment! LOL
I was never really concerned with "Letters" as such so I didn't give it much thought, but I've changed it for clarity. Thanks for the tip :)You also mentioned 'large letter' twice. It would be amiss if I didn't tell you that these changes will also apply to 'small letters'. If you wish to avoid this, you will need to replicate the original code between
<snip>
case "LL1";case "LL2";case "LL3";
on the 'new' code. IOW, the 'SLET' (small letter) will now get different treatment than the large letters (LL)
It brought up another problem with letters. I did a test with a (roughly) business card sized product - 10cm x 5cm x .03cm which the server returned -
... which defaults to a parcel size... if I enter a height of 0.1cm, it calculates correctly for letters, so I'm guessing that the server doesn't handle down to 100th sizes?====== Parcel Build ======
Item 1, Qty 1
Item Value $0
Item Weight 0.001kg
Product#1 had no height using 250mm
Item Dimensions 25 x 10 x 5 (cm)
Not a biggy for me, just an observation :)
(hmmm... I just noticed "Item Value $0" above where my actual value was $0.10)
BTW (I'm probably getting picky now), in your install section of ozpost.php, where it creates the 'Tare Dimension' (and the like) for editing in the module, the code defines some text as white text on a white background, so I also did some code changes around here from "color:white\" to "color:black\", just to make it visible. :)
Thanks Rod
John
Bookmarks