Product Import Export for WooCommerce - Version 1.5.5

Version Description

  • Updates: Tested OK with WC 3.5.5 and WP 5.1
  • Bug Fix:- Import process getting stuck randomly.
Download this release

Release Info

Developer webtoffee
Plugin Icon 128x128 Product Import Export for WooCommerce
Version 1.5.5
Comparing to
See all releases

Code changes from version 1.5.4 to 1.5.5

includes/class-wf-prodimpexpcsv-admin-screen.php CHANGED
@@ -42,7 +42,7 @@ class WF_ProdImpExpCsv_Admin_Screen {
42
  public function admin_scripts() {
43
  $screen = get_current_screen();
44
  $allowed_creen_id = array('product_page_wf_woocommerce_csv_im_ex');
45
- if (in_array($screen->id, $allowed_creen_id)) {
46
  wp_enqueue_style('woocommerce_admin_styles', WC()->plugin_url() . '/assets/css/admin.css');
47
  wp_enqueue_style('woocommerce-product-csv-importer', plugins_url(basename(plugin_dir_path(WF_ProdImpExpCsv_FILE)) . '/styles/wf-style.css', basename(__FILE__)), '', '1.4.4', 'screen');
48
  }
42
  public function admin_scripts() {
43
  $screen = get_current_screen();
44
  $allowed_creen_id = array('product_page_wf_woocommerce_csv_im_ex');
45
+ if (in_array($screen->id, $allowed_creen_id) || (isset($_GET['import']) && $_GET['import'] == 'xa_woocommerce_csv')) {
46
  wp_enqueue_style('woocommerce_admin_styles', WC()->plugin_url() . '/assets/css/admin.css');
47
  wp_enqueue_style('woocommerce-product-csv-importer', plugins_url(basename(plugin_dir_path(WF_ProdImpExpCsv_FILE)) . '/styles/wf-style.css', basename(__FILE__)), '', '1.4.4', 'screen');
48
  }
includes/importer/class-wf-prodimpexpcsv-product-import.php CHANGED
@@ -232,7 +232,10 @@ class WF_ProdImpExpCsv_Product_Import extends WP_Importer {
232
  done_count++;
233
 
234
  $('body').trigger( 'woocommerce_csv_import_request_complete' );
235
- }
 
 
 
236
  });
237
  }
238
 
232
  done_count++;
233
 
234
  $('body').trigger( 'woocommerce_csv_import_request_complete' );
235
+ },
236
+ error: function (jqXHR, httpStatusMessage, customErrorMessage) {
237
+ import_rows(start_pos, end_pos);
238
+ }
239
  });
240
  }
241
 
product-csv-import-export.php CHANGED
@@ -5,8 +5,8 @@
5
  Description: Import and Export Products From and To your WooCommerce Store.
6
  Author: WebToffee
7
  Author URI: https://www.webtoffee.com/product/product-import-export-woocommerce/
8
- Version: 1.5.4
9
- WC tested up to: 3.5.4
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
  Text Domain: wf_csv_import_export
@@ -18,7 +18,7 @@ if (!defined('ABSPATH') || !is_admin()) {
18
 
19
 
20
  if (!defined('WF_PIPE_CURRENT_VERSION')) {
21
- define("WF_PIPE_CURRENT_VERSION", "1.5.4");
22
  }
23
  if (!defined('WF_PROD_IMP_EXP_ID')) {
24
  define("WF_PROD_IMP_EXP_ID", "wf_prod_imp_exp");
@@ -29,7 +29,7 @@ if (!defined('WF_WOOCOMMERCE_CSV_IM_EX')) {
29
  /**
30
  * Check if WooCommerce is active
31
  */
32
- if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
33
 
34
  if (!class_exists('WF_Product_Import_Export_CSV')) :
35
 
@@ -468,7 +468,7 @@ if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_
468
  endif;
469
 
470
  new WF_Product_Import_Export_CSV();
471
- }
472
 
473
 
474
 
@@ -478,6 +478,10 @@ add_action('admin_init', 'impexp_welcome');
478
  register_activation_hook(__FILE__, 'hf_welcome_screen_activate_basic');
479
 
480
  function hf_welcome_screen_activate_basic() {
 
 
 
 
481
  if (is_plugin_active('product-csv-import-export-for-woocommerce/product-csv-import-export.php')) {
482
  deactivate_plugins(basename(__FILE__));
483
  wp_die(__("Is everything fine? You already have the Premium version installed in your website. For any issues, kindly raise a ticket via <a target='_blank' href='https://www.webtoffee.com/support/'>support</a>", "wf_csv_import_export"), "", array('back_link' => 1));
5
  Description: Import and Export Products From and To your WooCommerce Store.
6
  Author: WebToffee
7
  Author URI: https://www.webtoffee.com/product/product-import-export-woocommerce/
8
+ Version: 1.5.5
9
+ WC tested up to: 3.5.5
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
  Text Domain: wf_csv_import_export
18
 
19
 
20
  if (!defined('WF_PIPE_CURRENT_VERSION')) {
21
+ define("WF_PIPE_CURRENT_VERSION", "1.5.5");
22
  }
23
  if (!defined('WF_PROD_IMP_EXP_ID')) {
24
  define("WF_PROD_IMP_EXP_ID", "wf_prod_imp_exp");
29
  /**
30
  * Check if WooCommerce is active
31
  */
32
+ //if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
33
 
34
  if (!class_exists('WF_Product_Import_Export_CSV')) :
35
 
468
  endif;
469
 
470
  new WF_Product_Import_Export_CSV();
471
+ //}
472
 
473
 
474
 
478
  register_activation_hook(__FILE__, 'hf_welcome_screen_activate_basic');
479
 
480
  function hf_welcome_screen_activate_basic() {
481
+ if(!class_exists( 'WooCommerce' )){
482
+ deactivate_plugins(basename(__FILE__));
483
+ wp_die(__("WooCommerce is not installed/actived. it is required for this plugin to work properly. Please activate WooCommerce.", "wf_csv_import_export"), "", array('back_link' => 1));
484
+ }
485
  if (is_plugin_active('product-csv-import-export-for-woocommerce/product-csv-import-export.php')) {
486
  deactivate_plugins(basename(__FILE__));
487
  wp_die(__("Is everything fine? You already have the Premium version installed in your website. For any issues, kindly raise a ticket via <a target='_blank' href='https://www.webtoffee.com/support/'>support</a>", "wf_csv_import_export"), "", array('back_link' => 1));
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webtoffee
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: woocommerce product import, woocommerce import products, woocommerce export products, export woocommerce products, import products into woocommerce
5
  Requires at least: 3.0.1
6
- Tested up to: 5.0.3
7
- Stable tag: 1.5.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -20,7 +20,7 @@ Are you trying to import products into WooCommerce store or export WooCommerce p
20
 
21
  &#128312; Export Simple Products in to a CSV file.
22
  &#128312; Import Simple Products in CSV format in to WooCommerce Store.
23
- &#128312; Tested OK with WooCommerce 3.5.4.
24
 
25
 
26
  Highlights: WooCommerce Product Export, WooCommerce Product CSV Import Suite, WooCommerce bulk product upload, WooCommerce import products with images, import amazon products to WooCommerce, Export Products to xls. Pro Version supports both Simple and Variable products.
@@ -148,6 +148,9 @@ LibreOffice.
148
  3. Premium Export Settings Screen
149
 
150
  == Changelog ==
 
 
 
151
 
152
  = 1.5.4 =
153
  * Updates: Tested OK with WC 3.5.4
@@ -284,7 +287,6 @@ LibreOffice.
284
 
285
  == Upgrade Notice ==
286
 
287
- = 1.5.4 =
288
- * Updates: Tested OK with WC 3.5.4
289
- * Bug Fix:- Importing hierarchical category
290
- * Content Update.
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: woocommerce product import, woocommerce import products, woocommerce export products, export woocommerce products, import products into woocommerce
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.1
7
+ Stable tag: 1.5.5
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
20
 
21
  &#128312; Export Simple Products in to a CSV file.
22
  &#128312; Import Simple Products in CSV format in to WooCommerce Store.
23
+ &#128312; Tested OK with WooCommerce 3.5.5.
24
 
25
 
26
  Highlights: WooCommerce Product Export, WooCommerce Product CSV Import Suite, WooCommerce bulk product upload, WooCommerce import products with images, import amazon products to WooCommerce, Export Products to xls. Pro Version supports both Simple and Variable products.
148
  3. Premium Export Settings Screen
149
 
150
  == Changelog ==
151
+ = 1.5.5 =
152
+ * Updates: Tested OK with WC 3.5.5 and WP 5.1
153
+ * Bug Fix:- Import process getting stuck randomly.
154
 
155
  = 1.5.4 =
156
  * Updates: Tested OK with WC 3.5.4
287
 
288
  == Upgrade Notice ==
289
 
290
+ = 1.5.5 =
291
+ * Updates: Tested OK with WC 3.5.5 and WP 5.1
292
+ * Bug Fix:- Import process getting stuck randomly.