
Originally Posted by
Stumpy74
I hope this hasn't already been covered
No. This is a first.

Originally Posted by
Stumpy74
To fit I thought of using a negative handling fee for Aus post and Fast Way Labels however when you do this it removes that option from the result.
I can't think why it should... I've no reason to *deny* negative amounts.

Originally Posted by
Stumpy74
(woudl also like it to return $0 if the calculated cost via the module is less then what I put int he handling fee as a negative number).
Is this possible and am I missing a config option ?
It should be possible (he says cautiously), and no, you haven't missed a config option.......
<a little later>
I've spotted the problem, It seems the program is making use of the handling fee values as part of a validity check...
Handy with a text editor?
load /includes/modules/shipping/ozpost.php into editor
At or near line 467 you'll see:
Code:
if ( (($quote->cost > 0) && ($handlingFee >= 0)) ) { // valid quote
Alter this line so it reads:
Code:
if ( (($quote->cost > 0) && ($handlingFee != -1)) ) { // valid quote
Save the file, then enter your negative handling fees.. use ANY value except -1
As for returning to $0 ... the line that follows the one just edited is a simple formula that adds the shipping and handling figures, so add another line after that that reads something like
if ($cost < 0 ) $cost = 0 ;
... resave the file and give it a try.
Cheers
Rod
Bookmarks