Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->id = 'flat_rate';
     $this->enabled = Jigoshop_Base::get_options()->get('jigoshop_flat_rate_enabled');
     $this->title = Jigoshop_Base::get_options()->get('jigoshop_flat_rate_title');
     $this->availability = Jigoshop_Base::get_options()->get('jigoshop_flat_rate_availability');
     $this->countries = Jigoshop_Base::get_options()->get('jigoshop_flat_rate_countries');
     $this->type = Jigoshop_Base::get_options()->get('jigoshop_flat_rate_type');
     $this->tax_status = Jigoshop_Base::get_options()->get('jigoshop_flat_rate_tax_status');
     $this->cost = Jigoshop_Base::get_options()->get('jigoshop_flat_rate_cost');
     $this->fee = Jigoshop_Base::get_options()->get('jigoshop_flat_rate_handling_fee');
     add_action('admin_enqueue_scripts', array($this, 'admin_scripts'), 9);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $options = Jigoshop_Base::get_options();
     $this->id = 'free_shipping';
     $this->enabled = $options->get('jigoshop_free_shipping_enabled');
     $this->title = $options->get('jigoshop_free_shipping_title');
     $this->min_amount = $options->get('jigoshop_free_shipping_minimum_amount');
     $this->availability = $options->get('jigoshop_free_shipping_availability');
     $this->countries = $options->get('jigoshop_free_shipping_countries');
     $session = jigoshop_session::instance();
     if (isset($session->chosen_shipping_method_id) && $session->chosen_shipping_method_id == $this->id) {
         $this->chosen = true;
     }
     add_action('jigoshop_settings_scripts', array($this, 'admin_scripts'));
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $options = Jigoshop_Base::get_options();
     $this->id = 'local_pickup';
     $this->enabled = $options->get('jigoshop_local_pickup_enabled');
     $this->title = $options->get('jigoshop_local_pickup_title');
     $this->fee = $options->get('jigoshop_local_pickup_handling_fee');
     $this->availability = $options->get('jigoshop_local_pickup_availability');
     $this->countries = $options->get('jigoshop_local_pickup_countries');
     $session = jigoshop_session::instance();
     if (isset($session->chosen_shipping_method_id) && $session->chosen_shipping_method_id == $this->id) {
         $this->chosen = true;
     }
     add_action('jigoshop_settings_scripts', array($this, 'admin_scripts'));
 }
 /** constructor */
 public function __construct()
 {
     parent::__construct();
 }