public function __construct()
 {
     parent::__construct();
     $this->id = 'ffl_dealer_shipping';
     $this->enabled = FFLCommerce_Base::get_options()->get('fflcommerce_ffl_dealer_shipping_enabled');
     $this->title = FFLCommerce_Base::get_options()->get('fflcommerce_ffl_dealer_shipping_title');
     $this->availability = FFLCommerce_Base::get_options()->get('fflcommerce_ffl_dealer_shipping_availability');
     $this->countries = FFLCommerce_Base::get_options()->get('fflcommerce_ffl_dealer_shipping_countries');
     $this->type = FFLCommerce_Base::get_options()->get('fflcommerce_ffl_dealer_shipping_type');
     $this->tax_status = FFLCommerce_Base::get_options()->get('fflcommerce_ffl_dealer_shipping_tax_status');
     $this->cost = FFLCommerce_Base::get_options()->get('fflcommerce_ffl_dealer_shipping_cost');
     $this->fee = FFLCommerce_Base::get_options()->get('fflcommerce_ffl_dealer_shipping_handling_fee');
     add_action('admin_enqueue_scripts', array($this, 'admin_scripts'), 9);
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $options = FFLCommerce_Base::get_options();
     $this->id = 'local_pickup';
     $this->enabled = $options->get('fflcommerce_local_pickup_enabled');
     $this->title = $options->get('fflcommerce_local_pickup_title');
     $this->fee = $options->get('fflcommerce_local_pickup_handling_fee');
     $this->availability = $options->get('fflcommerce_local_pickup_availability');
     $this->countries = $options->get('fflcommerce_local_pickup_countries');
     $session = fflcommerce_session::instance();
     if (isset($session->chosen_shipping_method_id) && $session->chosen_shipping_method_id == $this->id) {
         $this->chosen = true;
     }
     add_action('fflcommerce_settings_scripts', array($this, 'admin_scripts'));
 }
 /** constructor */
 public function __construct()
 {
     parent::__construct();
 }