id = 'free_shipping';
$this->enabled = get_option('jigoshop_free_shipping_enabled');
$this->title = get_option('jigoshop_free_shipping_title');
$this->min_amount = get_option('jigoshop_free_shipping_minimum_amount');
$this->availability = get_option('jigoshop_free_shipping_availability');
$this->countries = get_option('jigoshop_free_shipping_countries');
if (isset( jigoshop_session::instance()->chosen_shipping_method_id ) && jigoshop_session::instance()->chosen_shipping_method_id==$this->id) $this->chosen = true;
add_action('jigoshop_update_options', array(&$this, 'process_admin_options'));
add_option('jigoshop_free_shipping_availability', 'all');
add_option('jigoshop_free_shipping_title', 'Free Shipping');
}
public function calculate_shipping() {
$this->shipping_total = 0;
$this->shipping_tax = 0;
$this->shipping_label = $this->title;
}
public function admin_options() {
?>