Okay after a lot of trail and error I worked out how to add extra shipping prices/locations.
1. First I added a drop down list:
<select name="postage" id="postage">
<option value="3.50">VIC $3.50</option>
<option value="8.60">NSW $8.60</option>
</select>
to the std_cart_wrap.htm file in the chunks folder of TreasureChest, I put it just next to the update button and gave it a name of postage.
2. In the treasurechest.class.php file in the TreasureChest folder I added some lines of code:
at line 252 I added/changed this section to read:
$postage=$_REQUEST['postage'];
if ($item_id==postage)
{
$product['quantity'] = 1;
$product['item_name'] = 'Shipping $'.$postage;
}
if(!isset($postage))
{
$postage=3.50;
}
$product['shipping'] = $postage;
Then at 315 I changed the line to be $cart_total = $cart_total + $postage;
It now adds the drop down amount to the total and displays another box with a title and the amount.
And the $product[’shipping’] = $postage; line over rights the original shipping price with the new drop down price, it also adds the first drop down amount to the total in case the customer forgets to select a shipping state or tries to not pay shipping.
I have made some other changes but that’s the basic modification, its very ruff but it does the job!