id = 'free_shipping'; $this->method_title = __('Free shipping', 'woothemes'); $this->enabled = get_option('woocommerce_free_shipping_enabled'); $this->title = get_option('woocommerce_free_shipping_title'); $this->min_amount = get_option('woocommerce_free_shipping_minimum_amount'); $this->availability = get_option('woocommerce_free_shipping_availability'); $this->countries = get_option('woocommerce_free_shipping_countries'); add_action('woocommerce_update_options_shipping_methods', array(&$this, 'process_admin_options')); add_option('woocommerce_free_shipping_availability', 'all'); add_option('woocommerce_free_shipping_title', 'Free Shipping'); } function calculate_shipping() { $this->shipping_total = 0; $this->shipping_tax = 0; $this->shipping_label = $this->title; } function admin_options() { global $woocommerce; ?>
|