rendered paste body function getShipping($ShipCountry, $ShipState, $Qtyset, $QtyDivision) { if ($ShipCountry == "United States") { switch ($ShipState) { case USVI: break; case Alaska: break; case Hawaii: break; case Puertorico: break; //SHIPPING RULES FOR CONTIGUOUS USA default: if ($QtyDivision >= 1 && $QtyDivision <= 3) { $options = array( 'USPS Priority Mail'=>'8.00' ); return $options; } elseif ($QtyDivision >= 1 && $QtyDivision <= 3) { $options = array( 'USPS Priority Mail'=>'11.00' ); return $options; } elseif ($Qtyset == 1) { $options = array( 'UPS Ground'=>'12.00', 'UPS Second Day Air'=>'20.00' ); return $options; } else { return false; } } } }