And the answer is->change the following code:
FILE: SET_SHIPPING_ALL
CHANGE: $TotalShipping = ShippingByTotal($tItemCost -
$tItemCostFreeShipping);
TO: $TotalShipping = ShippingByTotal(($tItemCost - $tItemCostFreeShipping),
$ship_Method);
FILE: ShippingByTotal
CHANGE: function ShippingByTotal($Total)
TO: function ShippingByTotal($Total, $ship_Method)
{
if($ship_Method == 1)
{
<INSERT IF AND ELSEIF STRUCTURE FOR SHIPPING METHOD 1 HERE>
}
else
{
<INSERT IF AND ELSEIF STRUCTURE FOR SHIPPING METHOD 2 HERE>
}
FILE: SET_ORDER_INFO
CHANGE: $TotalShipping = ShippingByTotal($Total['Items']);
TO: $TotalShipping = ShippingByTotal($Total['Items'], $ship_Method);
BTW - To change the names of the shipping methods, you will have to change
them in the mysql shipping table
Cheers, Kevin
----- Original Message -----
From: Leon Atkinson <[EMAIL PROTECTED]>
To: FreeTrade <[EMAIL PROTECTED]>
Sent: Tuesday, November 21, 2000 6:04 PM
Subject: Re: [FreeTrade] Shipping by total: Shipping Method 2
> How would I increase the rate when the user selects shipping method 2?
I'd change the function so that it takes both total and shipping method.
Then tweak the code inside the function to account for the two (or however
many) shipping methods.
Leon
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]