Quote Originally Posted by dw08gm View Post
Hi Rod

Where you have set 25.00 and 99.00 as the default shipping amounts for national and international postage, how do I change these amounts to be formula derived, such that:

National Postage = Weight * x
International Postage = Weight * y

where
Weight is the total weight of an order
x is the national multiplier (to be set by the store manager)
y is the international multiplier (to be set by the store manager)

TIA
The short answer is "You don't".

The long answer is you will need to modify the ozpost.php code itself. This probably won't be too difficult because the the code calls a function (_get_cost_on_error) that, as the name suggests, gets the postage cost if there is an error.

All you need do is modify this function so that it returns the cost you desire. Currently all this function really does is retrieve the values from the database and determines whether to return the local value, the overseas value or whether to disable the module if the value is zero.

Hope this helps.

Cheers
Rod

ps. I quite like this idea, it seems more practical than the fixed costs.