Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     if (isset($_REQUEST['shipping_module_id'])) {
         update_user_option(get_current_user_id(), 'wpsc_settings_selected_shipping_module', $_REQUEST['shipping_module_id']);
     }
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     if (isset($_REQUEST['shipping_module_id'])) {
         update_user_option(get_current_user_id(), 'wpsc_settings_selected_shipping_module', sanitize_text_field($_REQUEST['shipping_module_id']));
     }
     add_action('admin_notices', array($this, 'no_shipping_notice'));
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $file = get_transient('wpsc_settings_tab_import_file');
     if ($file) {
         $this->file = $file;
     }
     $this->step = empty($_REQUEST['step']) ? 1 : (int) $_REQUEST['step'];
     if ($this->step < 1 || $this->step > 3) {
         $this->step = 1;
     }
     switch ($this->step) {
         case 2:
             $this->prepare_import_columns();
             break;
         case 3:
             $this->import_data();
             break;
     }
     $this->hide_submit_button();
 }
Ejemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $file = get_transient('wpsc_settings_tab_import_file');
     if ($file) {
         $this->file = $file;
     }
     $this->step = empty($_REQUEST['step']) ? 1 : (int) $_REQUEST['step'];
     if ($this->step < 1 || $this->step > 3) {
         $this->step = 1;
     }
     $this->default_fields = apply_filters('wpsc_product_import_default_fields', array('column_name' => __('Product Name', 'wpsc'), 'column_description' => __('Description', 'wpsc'), 'column_additional_description' => __('Additional Description', 'wpsc'), 'column_price' => __('Price', 'wpsc'), 'column_sku' => __('SKU', 'wpsc'), 'column_weight' => __('Weight', 'wpsc'), 'column_weight_unit' => __('Weight Unit', 'wpsc'), 'column_quantity' => __('Stock Quantity', 'wpsc'), 'column_quantity_limited' => __('Stock Quantity Limit', 'wpsc')));
     switch ($this->step) {
         case 2:
             $this->prepare_import_columns();
             break;
         case 3:
             $this->import_data();
             break;
     }
     $this->hide_submit_button();
 }