Import Products from any XML or CSV to WooCommerce - Version 1.2.1

Version Description

  • fixed css styles
  • added compatibility with woocommerce 2.3
Download this release

Release Info

Developer soflyy
Plugin Icon 128x128 Import Products from any XML or CSV to WooCommerce
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP All Import - WooCommerce Add-On
4
  Plugin URI: http://www.wpallimport.com/
5
  Description: An extremely easy, drag & drop importer to import WooCommerce simple products. A paid upgrade is available for premium support and support for Variable, Grouped, and External/Affiliate products
6
- Version: 1.2.0
7
  Author: Soflyy
8
  */
9
  /**
@@ -24,7 +24,7 @@ define('PMWI_ROOT_URL', rtrim(plugin_dir_url(__FILE__), '/'));
24
  */
25
  define('PMWI_PREFIX', 'pmwi_');
26
 
27
- define('PMWI_FREE_VERSION', '1.2.0');
28
 
29
  define('PMWI_EDITION', 'free');
30
 
@@ -224,6 +224,8 @@ final class PMWI_Plugin {
224
  if (preg_match('%^' . preg_quote(str_replace('_', '-', self::PREFIX), '%') . '([\w-]+)$%', $page)) {
225
  $this->adminDispatcher($page, strtolower($input->getpost('action', 'index')));
226
  }
 
 
227
  }
228
 
229
  /**
@@ -281,7 +283,7 @@ final class PMWI_Plugin {
281
  );
282
  add_filter('current_screen', array($this, 'getAdminCurrentScreen'));
283
  add_filter('admin_body_class', create_function('', 'return "' . PMWI_Plugin::PREFIX . 'plugin";'));
284
-
285
  $controller = new $controllerName();
286
  if ( ! $controller instanceof PMWI_Controller_Admin) {
287
  throw new Exception("Administration page `$page` matches to a wrong controller type.");
@@ -390,6 +392,19 @@ final class PMWI_Plugin {
390
 
391
  }
392
 
 
 
 
 
 
 
 
 
 
 
 
 
 
393
  /**
394
  * Method returns default import options, main utility of the method is to avoid warnings when new
395
  * option is introduced but already registered imports don't have it
3
  Plugin Name: WP All Import - WooCommerce Add-On
4
  Plugin URI: http://www.wpallimport.com/
5
  Description: An extremely easy, drag & drop importer to import WooCommerce simple products. A paid upgrade is available for premium support and support for Variable, Grouped, and External/Affiliate products
6
+ Version: 1.2.1
7
  Author: Soflyy
8
  */
9
  /**
24
  */
25
  define('PMWI_PREFIX', 'pmwi_');
26
 
27
+ define('PMWI_FREE_VERSION', '1.2.1');
28
 
29
  define('PMWI_EDITION', 'free');
30
 
224
  if (preg_match('%^' . preg_quote(str_replace('_', '-', self::PREFIX), '%') . '([\w-]+)$%', $page)) {
225
  $this->adminDispatcher($page, strtolower($input->getpost('action', 'index')));
226
  }
227
+ add_filter('plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
228
+
229
  }
230
 
231
  /**
283
  );
284
  add_filter('current_screen', array($this, 'getAdminCurrentScreen'));
285
  add_filter('admin_body_class', create_function('', 'return "' . PMWI_Plugin::PREFIX . 'plugin";'));
286
+
287
  $controller = new $controllerName();
288
  if ( ! $controller instanceof PMWI_Controller_Admin) {
289
  throw new Exception("Administration page `$page` matches to a wrong controller type.");
392
 
393
  }
394
 
395
+ public function plugin_row_meta($links, $file)
396
+ {
397
+ if ( $file == plugin_basename( __FILE__ ) ) {
398
+ $row_meta = array(
399
+ 'pro' => '<a href="http://www.wpallimport.com/woocommerce-product-import/" target="_blank" title="' . esc_attr( __( 'WP All Import - WooCommerce Add-On Pro Version', 'pmxi_plugin' ) ) . '">' . __( 'Pro Version', 'pmxi_plugin' ) . '</a>',
400
+ );
401
+
402
+ return array_merge( $links, $row_meta );
403
+ }
404
+
405
+ return (array) $links;
406
+ }
407
+
408
  /**
409
  * Method returns default import options, main utility of the method is to avoid warnings when new
410
  * option is introduced but already registered imports don't have it
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: soflyy, wpallimport
3
  Requires at least: 3.5
4
  Tested up to: 4.1
5
- Stable tag: 1.2.0
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Tags: woocommerce xml import, woocommerce csv import, woocommerce, import, xml, csv, wp all import, csv import, import csv, xml import, import xml, woocommerce csv importer, woocommerce xml importer, csv importer, csv import suite
@@ -83,6 +83,10 @@ The WooCommerce add-on will appear in the Step 4 of WP All Import.
83
 
84
  == Changelog ==
85
 
 
 
 
 
86
  = 1.2.0 =
87
  * IMPORTANT: WP All Import v4 (3.2.0) is a MAJOR update. Read this post before upgrading: (http://www.wpallimport.com/2014/11/free-version-wordpress-org-update-information)
88
  * speed up the import of taxonomies/categories
2
  Contributors: soflyy, wpallimport
3
  Requires at least: 3.5
4
  Tested up to: 4.1
5
+ Stable tag: 1.2.1
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Tags: woocommerce xml import, woocommerce csv import, woocommerce, import, xml, csv, wp all import, csv import, import csv, xml import, import xml, woocommerce csv importer, woocommerce xml importer, csv importer, csv import suite
83
 
84
  == Changelog ==
85
 
86
+ = 1.2.1 =
87
+ * fixed css styles
88
+ * added compatibility with woocommerce 2.3
89
+
90
  = 1.2.0 =
91
  * IMPORTANT: WP All Import v4 (3.2.0) is a MAJOR update. Read this post before upgrading: (http://www.wpallimport.com/2014/11/free-version-wordpress-org-update-information)
92
  * speed up the import of taxonomies/categories
static/css/admin.css CHANGED
@@ -90,9 +90,10 @@
90
  float: left;
91
  }
92
  .wpallimport-plugin #woocommerce_attributes{
93
- padding-left: 2%;
 
94
  padding-top: 10px;
95
- width:98% !important;
96
  }
97
  .wpallimport-plugin .variations_tree{
98
  font-family: sans-serif;
@@ -307,7 +308,17 @@
307
  display: none;
308
  margin: 10px;
309
  padding: 20px;
310
- background-color: #eee;
311
- border: 1px solid #ddd;
312
  text-align:center;
 
 
 
 
 
 
 
 
 
 
313
  }
90
  float: left;
91
  }
92
  .wpallimport-plugin #woocommerce_attributes{
93
+ /*padding-left: 2%;*/
94
+ float: right !important;
95
  padding-top: 10px;
96
+ width:75% !important;
97
  }
98
  .wpallimport-plugin .variations_tree{
99
  font-family: sans-serif;
308
  display: none;
309
  margin: 10px;
310
  padding: 20px;
311
+ background-color: #FFB8B8;
312
+ border: 1px solid #FF8383;
313
  text-align:center;
314
+ }
315
+ .wpallimport-plugin .upgrade_woo_link{
316
+ color: #000 !important;
317
+ font-size: 1.3em;
318
+ text-decoration: underline !important;
319
+ }
320
+ .wpallimport-plugin .animate_upgrade{
321
+ position: relative;
322
+ z-index: 9999999;
323
+ display: block;
324
  }
static/js/admin.js CHANGED
@@ -299,4 +299,21 @@
299
  $('.pmwi_adjust_prices').slideToggle();
300
  });
301
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  });})(jQuery);
299
  $('.pmwi_adjust_prices').slideToggle();
300
  });
301
 
302
+ $('.form-field, .main_choise').live('click', function(){
303
+ if ($(this).find('input:first').attr('disabled') == 'disabled'){
304
+ var $el = $(".upgrade_template:visible"),
305
+ x = 100,
306
+ originalColor = $el.css("background"),
307
+ i = 2; //counter
308
+
309
+ (function loop() { //recurisve IIFE
310
+ $el.css("background", "#FF8383");
311
+ setTimeout(function () {
312
+ $el.css("background", originalColor);
313
+ if (--i) setTimeout(loop, x); //restart loop
314
+ }, x);
315
+ }());
316
+ }
317
+ });
318
+
319
  });})(jQuery);
views/admin/import/_tabs/_advanced.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="panel woocommerce_options_panel" id="advanced_product_data" style="display:none;">
2
 
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
- <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
5
  </div>
6
 
7
  <div class="options_group hide_if_external">
1
  <div class="panel woocommerce_options_panel" id="advanced_product_data" style="display:none;">
2
 
3
  <div class="woo-add-on-free-edition-notice upgrade_template">
4
+ <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
5
  </div>
6
 
7
  <div class="options_group hide_if_external">
views/admin/import/_tabs/_attributes.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="panel woocommerce_options_panel" id="woocommerce_attributes" style="display:none;">
2
  <div style="margin-left:-2%;">
3
  <div class="woo-add-on-free-edition-notice upgrade_template" style="margin-top:0;">
4
- <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
5
  </div>
6
  </div>
7
  <div class="input">
1
  <div class="panel woocommerce_options_panel" id="woocommerce_attributes" style="display:none;">
2
  <div style="margin-left:-2%;">
3
  <div class="woo-add-on-free-edition-notice upgrade_template" style="margin-top:0;">
4
+ <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
5
  </div>
6
  </div>
7
  <div class="input">
views/admin/import/_tabs/_general.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="panel woocommerce_options_panel" id="general_product_data">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
- <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group hide_if_grouped">
6
  <p class="form-field">
1
  <div class="panel woocommerce_options_panel" id="general_product_data">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
+ <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group hide_if_grouped">
6
  <p class="form-field">
views/admin/import/_tabs/_inventory.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="panel woocommerce_options_panel" id="inventory_product_data" style="display:none;">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
- <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group show_if_simple show_if_variable">
6
 
1
  <div class="panel woocommerce_options_panel" id="inventory_product_data" style="display:none;">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
+ <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group show_if_simple show_if_variable">
6
 
views/admin/import/_tabs/_linked_product.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="panel woocommerce_options_panel" id="linked_product_data" style="display:none;">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
- <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group">
6
  <p class="form-field">
1
  <div class="panel woocommerce_options_panel" id="linked_product_data" style="display:none;">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
+ <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group">
6
  <p class="form-field">
views/admin/import/_tabs/_options.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="panel woocommerce_options_panel" id="add_on_options" style="display:none;">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
- <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group">
6
 
1
  <div class="panel woocommerce_options_panel" id="add_on_options" style="display:none;">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
+ <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group">
6
 
views/admin/import/_tabs/_shipping.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="panel woocommerce_options_panel" id="shipping_product_data" style="display:none;">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
- <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group">
6
  <p class="form-field">
1
  <div class="panel woocommerce_options_panel" id="shipping_product_data" style="display:none;">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
+ <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group">
6
  <p class="form-field">
views/admin/import/_tabs/_variations.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="panel woocommerce_options_panel" id="variable_product_options" style="display:none;">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
- <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group" style="padding-bottom:0px;">
6
 
1
  <div class="panel woocommerce_options_panel" id="variable_product_options" style="display:none;">
2
  <div class="woo-add-on-free-edition-notice upgrade_template">
3
+ <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=woocommerce" target="_blank" class="upgrade_woo_link"><?php _e('Upgrade to the professional edition of WP All Import and the WooCommerce add-on to import to Variable, Affiliate, and Grouped products.', 'pmxi_plugin');?></a>
4
  </div>
5
  <div class="options_group" style="padding-bottom:0px;">
6
 
views/admin/import/index.php CHANGED
@@ -51,9 +51,7 @@
51
  </h3>
52
  <div class="clear"></div>
53
  <div class="inside">
54
- <div class="panel-wrap product_data">
55
-
56
- <div class="wc-tabs-back"></div>
57
 
58
  <ul style="" class="product_data_tabs wc-tabs">
59
 
51
  </h3>
52
  <div class="clear"></div>
53
  <div class="inside">
54
+ <div class="panel-wrap product_data">
 
 
55
 
56
  <ul style="" class="product_data_tabs wc-tabs">
57