function getDefaultShippingMethod($country, $storeid, $storecountry, $weight, $price, $plastform_id) { if ($country == "usa"){ if ($weight<2000) { if ($storeid == "hermeshine"||$storeid=="eastar4"||$storeid=="xiaoyuanstore"||$storeid=="ilooke"||$storeid=="siafort_us"||$storeid=="uccgg") { if ($price <5) { return 1; } else { return 3; } else if ($storeid=="bizbest") { return 3; /* } else if ($plastform_id="2") { if ($price < 5) { return 24; } else { return 21; */ /*我新加的*/ } else { return 1; } } else { return 18; } } else if ($country == "brazil") { /* if ($plastform_id="2") { if ($price < 5) { return 24; } else { return 23; */ /*我新加的*/ } else if ($weight<100) { return 1; } else if ($weight<2000){ return 4; } else { return 7; } } else if ($country == "canada") { if ($weight<2000) { return 1; } else { return 7; } } else if ($country == "russia") { /* if ($plastform_id="2") { if ($price < 5) { return 24; } else { return 22; */ /*我新加的*/ } else if ($weight<1000) { return 4; } else { return 19; } } else if ($country == "aus") { if ($weight<900) { return 1; } else { return 9; } } else if ($country == "global") { /* if ($plastform_id="2") { if ($price < 5) { return 24; } else { return 2; */ /*我新加的*/ if ($weight<2000) { return 1; } else { return 7; } } else if ($country== "uk"){ if($weight<1600) { return 1; } else { return 14; } } else if ($country== "germany"){ if($weight<400) { if ($storeid == "dwfort"||$storeid=="buysia"||$storeid=="dealmap"||$storeid=="utopper") { return 16; } else { return 1; } } else if ($weight <800) { if ($storeid == "dwfort"||$storeid=="buysia"||$storeid=="dealmap"||$storeid=="utopper") { return 17; } else { return 1; } } else if ($weight <2000) { return 17; } else if ($weight <3000) { return 10; } else { return 7; } } else if ($country== "local"){ if ($storecountry == "usa") { if ($storeid=="bizbest") { return 18; } if ($price < 5) { return 3; } else { return 18; } } else if ($storecountry == "uk" || $storecountry == "germany" || $storecountry == "aus") { return 99; } return 100; } else if ($country== "local2"){ if ($storecountry == "usa") { if ($storeid=="bizbest") { return 100; } if ($price < 5) { return 18; } else { return 100; } } return 100; } return 0; }