示例#1
0
 public static function installShippingMethod($handle, $name, $pkg)
 {
     $smt = ShippingMethodType::getByHandle($handle);
     if (!is_object($smt)) {
         ShippingMethodType::add($handle, $name, $pkg);
     }
 }