コード例 #1
0
/** 
 * Add shipping module
 */
function bring_fraktguide_add($wpsc_shipping_modules)
{
    global $bring_fraktguide;
    $bring_fraktguide = new bring_fraktguide();
    $wpsc_shipping_modules[$bring_fraktguide->getInternalName()] = $bring_fraktguide;
    return $wpsc_shipping_modules;
}
コード例 #2
0
 /** 
  * Add Options on Activation
  */
 function bring_fraktguide_install()
 {
     if (!get_option('bring_fraktguide_options')) {
         $new_options = array('services' => array('MINIPAKKE' => true, 'A-POST' => true, 'B-POST' => true, 'NORGESPAKKE' => true, 'BPAKKE_DOR-DOR' => true, 'SERVICEPAKKE' => true, 'PA_DOREN' => true, 'EKSPRESS09' => true, 'EKSPRESS07' => true), 'use_cod' => false, 'quote_method' => 'total', 'price_vat' => 'without', 'use_handlingfee' => false, 'handlingfee' => 0.0);
         add_option('bring_fraktguide_options', $new_options);
     }
     bring_fraktguide::bring_posturl();
 }