Product Import Export for WooCommerce - Version 1.4.9

Version Description

  • Tested OK with WC 3.5.0
  • Compatible with new meta '_low_stock_amount' which introduced in WC3.5.0
Download this release

Release Info

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

Code changes from version 1.4.8 to 1.4.9

includes/exporter/data/data-wf-post-columns.php CHANGED
@@ -47,5 +47,7 @@ return apply_filters('woocommerce_csv_product_post_columns', array(
47
  // Virtual products
48
  '_product_url' => 'product_url',
49
  '_button_text' => 'button_text',
50
-
 
 
51
  ) );
47
  // Virtual products
48
  '_product_url' => 'product_url',
49
  '_button_text' => 'button_text',
50
+
51
+ '_sold_individually' => 'sold_individually',
52
+ '_low_stock_amount' => 'low_stock_amount'
53
  ) );
includes/importer/class-wf-csv-parser.php CHANGED
@@ -173,8 +173,7 @@ class WF_CSV_Parser {
173
  * @param integer $merge_empty_cells
174
  * @return array
175
  */
176
- public function parse_product( $item, $merge_empty_cells = 0 ) {
177
-
178
  global $WF_CSV_Product_Import, $wpdb;
179
  $this->row++;
180
 
@@ -486,7 +485,7 @@ class WF_CSV_Parser {
486
  if ( is_array( $term_may_exist ) ) {
487
  $possible_term = get_term( $term_may_exist['term_id'], 'product_cat' );
488
 
489
- if ( $possible_term->parent == $parent ) {
490
  $term_id = $term_may_exist['term_id'];
491
  }
492
  }
@@ -845,7 +844,8 @@ class WF_CSV_Parser {
845
  $product['sku'] = ( ! empty( $item['sku'] ) ) ? $item['sku'] : '';
846
  $product['post_title'] = ( ! empty( $item['post_title'] ) ) ? $item['post_title'] : '';
847
  $product['post_type'] = $this->post_type;
848
- unset( $item, $terms_array, $postmeta, $attributes, $gpf_data, $images );
 
849
  return $product;
850
  }
851
  public function hf_currency_formatter($price){
173
  * @param integer $merge_empty_cells
174
  * @return array
175
  */
176
+ public function parse_product( $item, $merge_empty_cells = 0 ) {
 
177
  global $WF_CSV_Product_Import, $wpdb;
178
  $this->row++;
179
 
485
  if ( is_array( $term_may_exist ) ) {
486
  $possible_term = get_term( $term_may_exist['term_id'], 'product_cat' );
487
 
488
+ if (!empty($possible_term) && $possible_term->parent == $parent ) {
489
  $term_id = $term_may_exist['term_id'];
490
  }
491
  }
844
  $product['sku'] = ( ! empty( $item['sku'] ) ) ? $item['sku'] : '';
845
  $product['post_title'] = ( ! empty( $item['post_title'] ) ) ? $item['post_title'] : '';
846
  $product['post_type'] = $this->post_type;
847
+ unset( $item, $terms_array, $postmeta, $attributes, $gpf_data, $images );
848
+
849
  return $product;
850
  }
851
  public function hf_currency_formatter($price){
includes/importer/class-wf-prodimpexpcsv-product-import.php CHANGED
@@ -521,7 +521,6 @@ class WF_ProdImpExpCsv_Product_Import extends WP_Importer {
521
  }
522
  fclose( $handle );
523
  }
524
-
525
  $mapping_from_db = get_option( 'wf_prod_csv_imp_exp_mapping');
526
  $saved_mapping = null;
527
  $saved_evaluation = null;
521
  }
522
  fclose( $handle );
523
  }
 
524
  $mapping_from_db = get_option( 'wf_prod_csv_imp_exp_mapping');
525
  $saved_mapping = null;
526
  $saved_evaluation = null;
includes/importer/data/data-wf-postmeta-defaults.php CHANGED
@@ -41,4 +41,7 @@ return apply_filters( 'woocommerce_csv_product_postmeta_defaults', array(
41
  'download_expiry' => '',
42
  'product_url' => '',
43
  'button_text' => '',
 
 
 
44
  ) );
41
  'download_expiry' => '',
42
  'product_url' => '',
43
  'button_text' => '',
44
+ 'sold_individually' => 'no',
45
+ 'low_stock_amount' =>0,
46
+
47
  ) );
includes/importer/data/data-wf-reserved-fields-pair.php CHANGED
@@ -46,6 +46,8 @@ return array(
46
  'tax:product_cat' => 'Product Categories | Product related categories',
47
  'tax:product_tag' => 'Product Tags | Product related tags',
48
  'tax:product_shipping_class' => 'Product Shipping Class | Allow you to group similar products for shipping',
 
 
49
 
50
 
51
  );
46
  'tax:product_cat' => 'Product Categories | Product related categories',
47
  'tax:product_tag' => 'Product Tags | Product related tags',
48
  'tax:product_shipping_class' => 'Product Shipping Class | Allow you to group similar products for shipping',
49
+ 'sold_individually'=>'Sold Individually | Allow one of this item to be bought in a single order',
50
+ 'low_stock_amount'=>'Low stock threshold | Low stock threshold',
51
 
52
 
53
  );
includes/importer/data/data-wf-reserved-fields.php CHANGED
@@ -56,5 +56,7 @@ return array(
56
  'download_expiry',
57
  'product_url',
58
  'button_text',
59
- 'default_attributes'
 
 
60
  );
56
  'download_expiry',
57
  'product_url',
58
  'button_text',
59
+ 'default_attributes',
60
+ 'sold_individually',
61
+ 'low_stock_amount'
62
  );
includes/importer/views/html-wf-import-options.php CHANGED
@@ -30,7 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
30
  </tr>
31
  </thead>
32
  <tbody>
33
- <?php
34
  $wpost_attributes = include( dirname(__FILE__) . '/../data/data-wf-reserved-fields-pair.php' );
35
 
36
  $taxonomy_n_attributes_items = array();
30
  </tr>
31
  </thead>
32
  <tbody>
33
+ <?php
34
  $wpost_attributes = include( dirname(__FILE__) . '/../data/data-wf-reserved-fields-pair.php' );
35
 
36
  $taxonomy_n_attributes_items = array();
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.4.8
9
- WC tested up to: 3.4.6
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.4.8");
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.4.9
9
+ WC tested up to: 3.5.0
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.4.9");
22
  }
23
  if (!defined('WF_PROD_IMP_EXP_ID')) {
24
  define("WF_PROD_IMP_EXP_ID", "wf_prod_imp_exp");
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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: 4.9.8
7
- Stable tag: 1.4.8
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.4.6.
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.
@@ -144,6 +144,10 @@ Yes. You can import or export product images along with other details
144
 
145
  == Changelog ==
146
 
 
 
 
 
147
  = 1.4.8 =
148
  * Tested OK with WC 3.4.6
149
  * Content Update.
@@ -253,6 +257,6 @@ Yes. You can import or export product images along with other details
253
 
254
  == Upgrade Notice ==
255
 
256
- = 1.4.8 =
257
- * Tested OK with WC 3.4.6
258
- * Content Update.
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: 4.9.8
7
+ Stable tag: 1.4.9
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.0.
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.
144
 
145
  == Changelog ==
146
 
147
+ = 1.4.9 =
148
+ * Tested OK with WC 3.5.0
149
+ * Compatible with new meta '_low_stock_amount' which introduced in WC3.5.0
150
+
151
  = 1.4.8 =
152
  * Tested OK with WC 3.4.6
153
  * Content Update.
257
 
258
  == Upgrade Notice ==
259
 
260
+ = 1.4.9 =
261
+ * Tested OK with WC 3.5.0
262
+ * Compatible with new meta '_low_stock_amount' which introduced in WC3.5.0