Product Import Export for WooCommerce - Version 1.8.6

Version Description

  • Tested OK with WC 4.8.0 and WP 5.6
  • Enhancement: product_page_url export.
Download this release

Release Info

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

Code changes from version 1.8.5 to 1.8.6

includes/exporter/class-wf-prodimpexpcsv-exporter.php CHANGED
@@ -83,6 +83,10 @@ class WF_ProdImpExpCsv_Exporter {
83
  if ( ! $export_columns || in_array( $column, $export_columns ) ) $row[] = $temp_head;
84
  }
85
 
 
 
 
 
86
  // Handle special fields like taxonomies
87
  if ( ! $export_columns || in_array( 'images', $export_columns ) ) {
88
  $row[] = 'images';
@@ -118,13 +122,6 @@ class WF_ProdImpExpCsv_Exporter {
118
  }
119
  }
120
 
121
-
122
-
123
- // WF: Adding product permalink.
124
- if ( ! $export_columns || in_array( 'product_page_url', $export_columns ) ) {
125
- $row[] = 'Product Page URL';
126
- }
127
-
128
  $row = array_map( 'WF_ProdImpExpCsv_Exporter::wrap_column', $row );
129
  fwrite( $fp, implode( ',', $row ) . "\n" );
130
  unset( $row );
@@ -297,6 +294,19 @@ class WF_ProdImpExpCsv_Exporter {
297
  }
298
  }
299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
  // Export images/gallery
301
  if ( ! $export_columns || in_array( 'images', $export_columns ) ) {
302
 
@@ -434,19 +444,7 @@ class WF_ProdImpExpCsv_Exporter {
434
  $row[] = empty( $gpf_data['adwords_labels'] ) ? '' : $gpf_data['adwords_labels'];
435
  }
436
 
437
- // WF: Adding product permalink.
438
- if ( ! $export_columns || in_array( 'product_page_url', $export_columns ) ) {
439
- $product_page_url = '';
440
- if ( $product->ID ) {
441
- $product_page_url = get_permalink( $product->ID );
442
- }
443
- if ( $product->post_parent ) {
444
- $product_page_url = get_permalink( $product->post_parent );
445
- }
446
-
447
- $row[] = $product_page_url;
448
- }
449
-
450
  // Add to csv
451
  $row = array_map( 'WF_ProdImpExpCsv_Exporter::wrap_column', $row );
452
  fwrite( $fp, implode( ',', $row ) . "\n" );
83
  if ( ! $export_columns || in_array( $column, $export_columns ) ) $row[] = $temp_head;
84
  }
85
 
86
+ // WF: Adding product permalink.
87
+ if ( ! $export_columns || in_array( 'product_page_url', $export_columns ) ) {
88
+ $row[] = 'product_page_url';
89
+ }
90
  // Handle special fields like taxonomies
91
  if ( ! $export_columns || in_array( 'images', $export_columns ) ) {
92
  $row[] = 'images';
122
  }
123
  }
124
 
 
 
 
 
 
 
 
125
  $row = array_map( 'WF_ProdImpExpCsv_Exporter::wrap_column', $row );
126
  fwrite( $fp, implode( ',', $row ) . "\n" );
127
  unset( $row );
294
  }
295
  }
296
 
297
+ // WF: Adding product permalink.
298
+ if ( ! $export_columns || in_array( 'product_page_url', $export_columns ) ) {
299
+ $product_page_url = '';
300
+ if ( $product->ID ) {
301
+ $product_page_url = get_permalink( $product->ID );
302
+ }
303
+ if ( $product->post_parent ) {
304
+ $product_page_url = get_permalink( $product->post_parent );
305
+ }
306
+
307
+ $row[] = $product_page_url;
308
+ }
309
+
310
  // Export images/gallery
311
  if ( ! $export_columns || in_array( 'images', $export_columns ) ) {
312
 
444
  $row[] = empty( $gpf_data['adwords_labels'] ) ? '' : $gpf_data['adwords_labels'];
445
  }
446
 
447
+
 
 
 
 
 
 
 
 
 
 
 
 
448
  // Add to csv
449
  $row = array_map( 'WF_ProdImpExpCsv_Exporter::wrap_column', $row );
450
  fwrite( $fp, implode( ',', $row ) . "\n" );
includes/views/export/html-wf-export-products.php CHANGED
@@ -129,7 +129,8 @@ if ( ! defined( 'ABSPATH' ) ) {
129
  <a href="#" id="punselectall" onclick="return false;"><?php _e('Unselect all', 'product-import-export-for-woo'); ?></a>
130
  </td>
131
  </tr>
132
- <?php
 
133
  $post_columns['images'] = 'Images (featured and gallery)';
134
  $post_columns['file_paths'] = 'Downloadable file paths';
135
  $post_columns['taxonomies'] = 'Taxonomies (cat/tags/shipping-class)';
129
  <a href="#" id="punselectall" onclick="return false;"><?php _e('Unselect all', 'product-import-export-for-woo'); ?></a>
130
  </td>
131
  </tr>
132
+ <?php
133
+ $post_columns['product_page_url'] = 'product_page_url';
134
  $post_columns['images'] = 'Images (featured and gallery)';
135
  $post_columns['file_paths'] = 'Downloadable file paths';
136
  $post_columns['taxonomies'] = 'Taxonomies (cat/tags/shipping-class)';
product-import-export-for-woo.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.8.5
9
- WC tested up to: 4.7.1
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
  Text Domain: product-import-export-for-woo
@@ -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.8.5" );
22
  }
23
  if ( !defined( 'WF_PROD_IMP_EXP_ID' ) ) {
24
  define( "WF_PROD_IMP_EXP_ID", "wf_prod_imp_exp" );
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.8.6
9
+ WC tested up to: 4.8.0
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
  Text Domain: product-import-export-for-woo
18
 
19
 
20
  if ( !defined( 'WF_PIPE_CURRENT_VERSION' ) ) {
21
+ define( "WF_PIPE_CURRENT_VERSION", "1.8.6" );
22
  }
23
  if ( !defined( 'WF_PROD_IMP_EXP_ID' ) ) {
24
  define( "WF_PROD_IMP_EXP_ID", "wf_prod_imp_exp" );
readme.txt CHANGED
@@ -3,9 +3,9 @@ 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 ,product, export, import, woocommerce ,csv
5
  Requires at least: 3.0.1
6
- Tested up to: 5.5
7
  Requires PHP: 5.6
8
- Stable tag: 1.8.5
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -21,7 +21,7 @@ Product import export plugin allows you to import or export WooCommerce simple p
21
 
22
  &#128312; Export Simple Products in to a CSV file.
23
  &#128312; Import Simple Products in CSV format in to WooCommerce Store.
24
- &#128312; Tested OK with WooCommerce 4.7.1
25
 
26
 
27
  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.
@@ -147,14 +147,20 @@ By default, admin and store manager are given access to export orders from your
147
 
148
  == Screenshots ==
149
 
150
- 1. WooCommerce Product Import Screen
151
 
152
- 2. WooCommerce Product Export Screen
153
 
154
- 3. Premium Export Settings Screen
 
 
155
 
156
  == Changelog ==
157
 
 
 
 
 
158
  = 1.8.5 =
159
  * Tested OK with WC 4.7.1 and WP 5.5.3
160
  * New filter options added in product export.
@@ -404,6 +410,6 @@ By default, admin and store manager are given access to export orders from your
404
 
405
  == Upgrade Notice ==
406
 
407
- = 1.8.5 =
408
- * Tested OK with WC 4.7.1 and WP 5.5.3
409
- * New filter options added in product export.
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 ,product, export, import, woocommerce ,csv
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.6
7
  Requires PHP: 5.6
8
+ Stable tag: 1.8.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
21
 
22
  &#128312; Export Simple Products in to a CSV file.
23
  &#128312; Import Simple Products in CSV format in to WooCommerce Store.
24
+ &#128312; Tested OK with WooCommerce 4.8.0
25
 
26
 
27
  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.
147
 
148
  == Screenshots ==
149
 
150
+ 1. Import screen for WooCommerce product import
151
 
152
+ 2. Export screen for WooCommerce product export plugin
153
 
154
+ 3. Import mapping screen for WooCommerce product import plugin
155
+
156
+ 4. WooCommerce product CSV import successful
157
 
158
  == Changelog ==
159
 
160
+ = 1.8.6 =
161
+ * Tested OK with WC 4.8.0 and WP 5.6
162
+ * Enhancement: product_page_url export.
163
+
164
  = 1.8.5 =
165
  * Tested OK with WC 4.7.1 and WP 5.5.3
166
  * New filter options added in product export.
410
 
411
  == Upgrade Notice ==
412
 
413
+ = 1.8.6 =
414
+ * Tested OK with WC 4.8.0 and WP 5.6
415
+ * Enhancement: product_page_url export.