Lab:2 wrote: > Hello, > > I'm currently setting up a store in Australia using Freetrade and before I > begin I thought I'd ask if anyone else is or has done so? > > If so how did they approach the shipping set-up? I'm looking into working > Australia Post shipping costs into the system but it's looking to be a bit > of a fiddle. > > With thanks, > > Nick Lo > > By the way the client is already pretty impressed with the system. (they've > been using Miva Merchant up until now...not much fun!) > > ---------------------- > Lab:2 Design Unit > URL: www.lab2.com.au > e-mail: [EMAIL PROTECTED] > ---------------------- > > ------------------------------------------------------------ > To subscribe: [EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Site: http://www.working-dogs.com/freetrade/ > Problems?: [EMAIL PROTECTED] Simply pass the valid feilds onto the ShippingByTotal() function in the SET_SHIPPING_ALL action. ie. $Country_Code = $shipAddress["CountryCode"]; ShippingByTotal(etc, $ship_Method, $Country_Code); and deal with them using the function below. If you change the default method from Standard & Express to one more you will need a third method. ie. "3". You can repeat the process for other Countries too. ie. elseif($Country == "US" || $Country == "MX") and so on. function ShippingByTotal($Total, $Method, $Country) { if($Country == "AU") { if($Method == "1") { if($Total <= 0.00) { $Shipping = 0.00; } elseif($Total <= 35.00) { $Shipping = 4.00; } elseif($Total <= 150.00) { $Shipping = 7.00; } elseif($Total <= 300.00) { $Shipping = 14.00; } else { $Shipping = $Total * 0.046; } } elseif($Method == "2") { if($Total <= 0.00) { $Shipping = 0.00; } elseif($Total <= 35.00) { $Shipping = 6.00; } elseif($Total <= 100.00) { $Shipping = 8.50; } elseif($Total <= 200.00) { $Shipping = 17.00; } else { $Shipping = $Total * 0.085; } } } else { if($Method == "1") { if($Total <= 0.00) { $Shipping = 0.00; } elseif($Total <= 35.00) { $Shipping = 16.50; } elseif($Total <= 100.00) { $Shipping = 28.50; } elseif($Total <= 200.00) { $Shipping = 52.00; } else { $Shipping = $Total * 0.26; } } elseif($Method == "2") { if($Total <= 0.00) { $Shipping = 0.00; } elseif($Total <= 35.00) { $Shipping = 47.00; } elseif($Total <= 100.00) { $Shipping = 59.00; } elseif($Total <= 200.00) { $Shipping = 80.00; } else { $Shipping = $Total * 0.40; } } } return($Shipping); } easy hay! -- --- Daniel Rama Ross ---- ,-_;\ ------- NATIO Pty. Ltd. -------- ph (61-3) 9415 99 11 / \ 6 Paterson Street Abbotsford fax (61-3) 9415 99 22 \_,-._/ Melbourne VIC 3101 Australia ------ [EMAIL PROTECTED] ----- v --- http://www.natio.com.au/ --- ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Site: http://www.working-dogs.com/freetrade/ Problems?: [EMAIL PROTECTED]

