Product Import Export for WooCommerce - Version 1.3.7

Version Description

  • Fixed conflict with Plus version.
Download this release

Release Info

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

Code changes from version 1.3.6 to 1.3.7

Files changed (2) hide show
  1. product-csv-import-export.php +29 -12
  2. readme.txt +5 -1
product-csv-import-export.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.xadapter.com/product/product-import-export-plugin-for-wo
5
  Description: Import and Export Products From and To your WooCommerce Store.
6
  Author: XAdapter
7
  Author URI: https://www.xadapter.com/
8
- Version: 1.3.6
9
  Text Domain: wf_csv_import_export
10
  */
11
 
@@ -13,9 +13,12 @@ if ( ! defined( 'ABSPATH' ) || ! is_admin() ) {
13
  return;
14
  }
15
 
16
- define( "WF_PROD_IMP_EXP_ID", "wf_prod_imp_exp" );
17
- define( "WF_WOOCOMMERCE_CSV_IM_EX", "wf_woocommerce_csv_im_ex" );
18
-
 
 
 
19
  /**
20
  * Check if WooCommerce is active
21
  */
@@ -32,7 +35,9 @@ if (in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', ge
32
  * Constructor
33
  */
34
  public function __construct() {
35
- define( 'WF_ProdImpExpCsv_FILE', __FILE__ );
 
 
36
 
37
  add_filter( 'woocommerce_screen_ids', array( $this, 'woocommerce_screen_ids' ) );
38
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'wf_plugin_action_links' ) );
@@ -130,15 +135,20 @@ if (in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', ge
130
  }
131
 
132
  // Welcome screen tutorial video
133
- add_action('admin_init', 'impexp_welcome');
134
- add_action('admin_menu', 'impexp_welcome_screen');
135
- add_action('admin_head', 'impexp_welcome_screen_remove_menus');
136
- register_activation_hook(__FILE__, 'hf_welcome_screen_activate');
137
-
138
- function hf_welcome_screen_activate() {
139
- set_transient('_welcome_screen_activation_redirect', true, 30);
 
 
140
  }
 
 
141
 
 
142
  function impexp_welcome() {
143
  if (!get_transient('_welcome_screen_activation_redirect')) {
144
  return;
@@ -146,15 +156,22 @@ if (in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', ge
146
  delete_transient('_welcome_screen_activation_redirect');
147
  wp_safe_redirect(add_query_arg(array('page' => 'impexp-welcome'), admin_url('index.php')));
148
  }
 
149
 
 
150
  function impexp_welcome_screen() {
151
  add_dashboard_page('Welcome To Import Export', 'Welcome To Import Export', 'read', 'impexp-welcome', 'impexp_screen_content');
152
  }
 
153
 
 
154
  function impexp_screen_content() {
155
  include 'welcome/welcome.php';
156
  }
 
157
 
 
158
  function impexp_welcome_screen_remove_menus() {
159
  remove_submenu_page('index.php', 'impexp-welcome');
160
  }
 
5
  Description: Import and Export Products From and To your WooCommerce Store.
6
  Author: XAdapter
7
  Author URI: https://www.xadapter.com/
8
+ Version: 1.3.7
9
  Text Domain: wf_csv_import_export
10
  */
11
 
13
  return;
14
  }
15
 
16
+ if( !defined('WF_PROD_IMP_EXP_ID') ){
17
+ define( "WF_PROD_IMP_EXP_ID", "wf_prod_imp_exp" );
18
+ }
19
+ if( !defined('WF_WOOCOMMERCE_CSV_IM_EX') ){
20
+ define( "WF_WOOCOMMERCE_CSV_IM_EX", "wf_woocommerce_csv_im_ex" );
21
+ }
22
  /**
23
  * Check if WooCommerce is active
24
  */
35
  * Constructor
36
  */
37
  public function __construct() {
38
+ if( !defined('WF_ProdImpExpCsv_FILE') ){
39
+ define( 'WF_ProdImpExpCsv_FILE', __FILE__ );
40
+ }
41
 
42
  add_filter( 'woocommerce_screen_ids', array( $this, 'woocommerce_screen_ids' ) );
43
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'wf_plugin_action_links' ) );
135
  }
136
 
137
  // Welcome screen tutorial video
138
+ add_action('admin_init', 'impexp_welcome');
139
+ add_action('admin_menu', 'impexp_welcome_screen');
140
+ add_action('admin_head', 'impexp_welcome_screen_remove_menus');
141
+ register_activation_hook(__FILE__, 'hf_welcome_screen_activate_basic');
142
+
143
+ function hf_welcome_screen_activate_basic() {
144
+ if ( is_plugin_active('product-csv-import-export-for-woocommerce/product-csv-import-export.php') ){
145
+ deactivate_plugins( basename( __FILE__ ) );
146
+ 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='//support.xadapter.com/'>support.xadapter.com</a>","wf-shipping-fedex"), "", array('back_link' => 1 ));
147
  }
148
+ set_transient('_welcome_screen_activation_redirect', true, 30);
149
+ }
150
 
151
+ if( !function_exists('impexp_welcome') ){
152
  function impexp_welcome() {
153
  if (!get_transient('_welcome_screen_activation_redirect')) {
154
  return;
156
  delete_transient('_welcome_screen_activation_redirect');
157
  wp_safe_redirect(add_query_arg(array('page' => 'impexp-welcome'), admin_url('index.php')));
158
  }
159
+ }
160
 
161
+ if( !function_exists('impexp_welcome_screen') ){
162
  function impexp_welcome_screen() {
163
  add_dashboard_page('Welcome To Import Export', 'Welcome To Import Export', 'read', 'impexp-welcome', 'impexp_screen_content');
164
  }
165
+ }
166
 
167
+ if( !function_exists('impexp_screen_content') ){
168
  function impexp_screen_content() {
169
  include 'welcome/welcome.php';
170
  }
171
+ }
172
 
173
+ if( !function_exists('impexp_welcome_screen_remove_menus') ){
174
  function impexp_welcome_screen_remove_menus() {
175
  remove_submenu_page('index.php', 'impexp-welcome');
176
  }
177
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: woocommerce import products, woocommerce export products, woocommerce export import products, export woocommerce products with images, woocommerce csv import variable products, woocommerce import products with attributes,import export
5
  Requires at least: 3.0.1
6
  Tested up to: 4.8
7
- Stable tag: 1.3.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -85,6 +85,8 @@ Yes. You can import or export product images along with other details
85
  3. Premium Export Settings Screen
86
 
87
  == Changelog ==
 
 
88
  = 1.3.6 =
89
  * Fixed some warnings.
90
  = 1.3.5 =
@@ -155,6 +157,8 @@ Yes. You can import or export product images along with other details
155
  * Import /Export Woocommerce Products.
156
 
157
  == Upgrade Notice ==
 
 
158
  = 1.3.6 =
159
  * Fixed some warnings.
160
  = 1.3.5 =
4
  Tags: woocommerce import products, woocommerce export products, woocommerce export import products, export woocommerce products with images, woocommerce csv import variable products, woocommerce import products with attributes,import export
5
  Requires at least: 3.0.1
6
  Tested up to: 4.8
7
+ Stable tag: 1.3.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
85
  3. Premium Export Settings Screen
86
 
87
  == Changelog ==
88
+ = 1.3.7 =
89
+ * Fixed conflict with Plus version.
90
  = 1.3.6 =
91
  * Fixed some warnings.
92
  = 1.3.5 =
157
  * Import /Export Woocommerce Products.
158
 
159
  == Upgrade Notice ==
160
+ = 1.3.7 =
161
+ * Fixed conflict with Plus version.
162
  = 1.3.6 =
163
  * Fixed some warnings.
164
  = 1.3.5 =