Product Import Export for WooCommerce - Version 1.8.2

Version Description

  • Tested OK with WC 4.3.1
  • Bug Fix: Issue with importing multiple image when images are in different folder.
Download this release

Release Info

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

Code changes from version 1.8.1 to 1.8.2

includes/importer/class-wf-prodimpexpcsv-product-import.php CHANGED
@@ -1364,6 +1364,12 @@ class WF_ProdImpExpCsv_Product_Import extends WP_Importer {
1364
  // We have the path, check it exists
1365
  if ( ! file_exists( $attachment_file ) )
1366
  $attachment_file = trailingslashit( $upload_dir['path'] ) . $url;
 
 
 
 
 
 
1367
 
1368
  // We have the path, check it exists
1369
  if ( file_exists( $attachment_file ) ) {
@@ -1655,4 +1661,14 @@ class WF_ProdImpExpCsv_Product_Import extends WP_Importer {
1655
  }
1656
  return $delemiter_pass;
1657
  }
 
 
 
 
 
 
 
 
 
 
1658
  }
1364
  // We have the path, check it exists
1365
  if ( ! file_exists( $attachment_file ) )
1366
  $attachment_file = trailingslashit( $upload_dir['path'] ) . $url;
1367
+
1368
+ // We have the path, check it exists, check in /wp-content/uploads/ and its sub folders(Recursive)
1369
+ if (!file_exists($attachment_file)){
1370
+ $attachment_file = $this->recursive_file_search($upload_dir['basedir'],$url);
1371
+ }
1372
+
1373
 
1374
  // We have the path, check it exists
1375
  if ( file_exists( $attachment_file ) ) {
1661
  }
1662
  return $delemiter_pass;
1663
  }
1664
+
1665
+ public function recursive_file_search($directory,$file_name){
1666
+ $it = new RecursiveDirectoryIterator($directory);
1667
+ foreach (new RecursiveIteratorIterator($it) as $file) {
1668
+ $file = str_replace('\\', '/', $file);
1669
+ if (substr(strrchr($file, '/'), 1) == $file_name) {
1670
+ return $file;
1671
+ }
1672
+ }
1673
+ }
1674
  }
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.1
9
- WC tested up to: 4.2.2
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.1" );
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.2
9
+ WC tested up to: 4.3.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
 
19
 
20
  if ( !defined( 'WF_PIPE_CURRENT_VERSION' ) ) {
21
+ define( "WF_PIPE_CURRENT_VERSION", "1.8.2" );
22
  }
23
  if ( !defined( 'WF_PROD_IMP_EXP_ID' ) ) {
24
  define( "WF_PROD_IMP_EXP_ID", "wf_prod_imp_exp" );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: woocommerce product import, woocommerce import products, woocommerce expor
5
  Requires at least: 3.0.1
6
  Tested up to: 5.4
7
  Requires PHP: 5.6
8
- Stable tag: 1.8.1
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
  🔸 Export Simple Products in to a CSV file.
23
  🔸 Import Simple Products in CSV format in to WooCommerce Store.
24
- 🔸 Tested OK with WooCommerce 4.2.2
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.
@@ -155,6 +155,10 @@ By default, admin and store manager are given access to export orders from your
155
 
156
  == Changelog ==
157
 
 
 
 
 
158
  = 1.8.1 =
159
  * Tested OK with WC 4.2.2 and WP 5.4.2
160
 
@@ -389,5 +393,6 @@ By default, admin and store manager are given access to export orders from your
389
 
390
  == Upgrade Notice ==
391
 
392
- = 1.8.1 =
393
- * Tested OK with WC 4.2.2 and WP 5.4.2
 
5
  Requires at least: 3.0.1
6
  Tested up to: 5.4
7
  Requires PHP: 5.6
8
+ Stable tag: 1.8.2
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
21
 
22
  🔸 Export Simple Products in to a CSV file.
23
  🔸 Import Simple Products in CSV format in to WooCommerce Store.
24
+ 🔸 Tested OK with WooCommerce 4.3.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.
155
 
156
  == Changelog ==
157
 
158
+ = 1.8.2 =
159
+ * Tested OK with WC 4.3.1
160
+ * Bug Fix: Issue with importing multiple image when images are in different folder.
161
+
162
  = 1.8.1 =
163
  * Tested OK with WC 4.2.2 and WP 5.4.2
164
 
393
 
394
  == Upgrade Notice ==
395
 
396
+ = 1.8.2 =
397
+ * Tested OK with WC 4.3.1
398
+ * Bug Fix: Issue with importing multiple image when images are in different folder.