Product Import Export for WooCommerce - Version 1.7.0

Version Description

  • Bug Fix: Price issue with scheduled sales imports. (@derickcpt)
Download this release

Release Info

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

Code changes from version 1.6.9 to 1.7.0

Files changed (63) hide show
  1. Product_Commercial_Sample_CSV.csv +0 -0
  2. Product_WooCommerce_Sample_CSV.csv +0 -0
  3. images/Import-Export-for-WooCommerce-Product-Image.png +0 -0
  4. images/documentation.png +0 -0
  5. images/sample_csv.png +0 -0
  6. images/setup.png +0 -0
  7. images/stars.png +0 -0
  8. images/storefrog.png +0 -0
  9. images/support.png +0 -0
  10. images/video.png +0 -0
  11. images/wf-ajax-loader.gif +0 -0
  12. images/wf-failed.png +0 -0
  13. images/wf-import.png +0 -0
  14. images/wf-notice.png +0 -0
  15. images/wf-success.png +0 -0
  16. includes/class-wf-prodimpexpcsv-admin-screen.php +0 -0
  17. includes/class-wf-prodimpexpcsv-ajax-handler.php +0 -0
  18. includes/class-wf-prodimpexpcsv-system-status-tools.php +0 -0
  19. includes/exporter/class-wf-prodimpexpcsv-exporter.php +0 -0
  20. includes/exporter/data/data-wf-hidden-meta-columns.php +0 -0
  21. includes/exporter/data/data-wf-post-columns.php +0 -0
  22. includes/images/Import-Export-for-WooCommerce-Product-Image.png +0 -0
  23. includes/images/documentation.png +0 -0
  24. includes/images/sample_csv.png +0 -0
  25. includes/images/setup.png +0 -0
  26. includes/images/stars.png +0 -0
  27. includes/images/storefrog.png +0 -0
  28. includes/images/support.png +0 -0
  29. includes/images/video.png +0 -0
  30. includes/images/wf-ajax-loader.gif +0 -0
  31. includes/images/wf-failed.png +0 -0
  32. includes/images/wf-import.png +0 -0
  33. includes/images/wf-notice.png +0 -0
  34. includes/images/wf-success.png +0 -0
  35. includes/importer/class-wf-csv-parser.php +27 -1
  36. includes/importer/class-wf-prodimpexpcsv-importer.php +0 -0
  37. includes/importer/class-wf-prodimpexpcsv-product-import.php +0 -0
  38. includes/importer/data/data-wf-post-defaults.php +0 -0
  39. includes/importer/data/data-wf-postmeta-allowed.php +0 -0
  40. includes/importer/data/data-wf-postmeta-defaults.php +0 -0
  41. includes/importer/data/data-wf-reserved-fields-pair.php +0 -0
  42. includes/importer/data/data-wf-reserved-fields.php +0 -0
  43. includes/importer/views/html-wf-import-greeting.php +0 -0
  44. includes/importer/views/html-wf-import-options.php +0 -0
  45. includes/settings/class-wf-prodimpexpcsv-settings.php +0 -0
  46. includes/views/export/html-wf-export-products.php +0 -0
  47. includes/views/html-wf-admin-screen.php +0 -0
  48. includes/views/html-wf-help-guide.php +0 -0
  49. includes/views/import/html-wf-import-products.php +0 -0
  50. includes/views/market.php +1 -1
  51. lang/product-import-export-for-woo-de_DE.mo +0 -0
  52. lang/product-import-export-for-woo-de_DE.po +0 -0
  53. lang/product-import-export-for-woo-fr_FR.mo +0 -0
  54. lang/product-import-export-for-woo-fr_FR.po +0 -0
  55. lang/product-import-export-for-woo-hu_HU.mo +0 -0
  56. lang/product-import-export-for-woo-hu_HU.po +0 -0
  57. lang/product-import-export-for-woo-it_IT.mo +0 -0
  58. lang/product-import-export-for-woo-it_IT.po +0 -0
  59. license.txt +0 -0
  60. product-import-export-for-woo.php +3 -3
  61. readme.txt +6 -3
  62. styles/wf-style.css +0 -0
  63. welcome/welcome.php +0 -0
Product_Commercial_Sample_CSV.csv CHANGED
File without changes
Product_WooCommerce_Sample_CSV.csv CHANGED
File without changes
images/Import-Export-for-WooCommerce-Product-Image.png CHANGED
File without changes
images/documentation.png CHANGED
File without changes
images/sample_csv.png CHANGED
File without changes
images/setup.png CHANGED
File without changes
images/stars.png CHANGED
File without changes
images/storefrog.png CHANGED
File without changes
images/support.png CHANGED
File without changes
images/video.png CHANGED
File without changes
images/wf-ajax-loader.gif CHANGED
File without changes
images/wf-failed.png CHANGED
File without changes
images/wf-import.png CHANGED
File without changes
images/wf-notice.png CHANGED
File without changes
images/wf-success.png CHANGED
File without changes
includes/class-wf-prodimpexpcsv-admin-screen.php CHANGED
File without changes
includes/class-wf-prodimpexpcsv-ajax-handler.php CHANGED
File without changes
includes/class-wf-prodimpexpcsv-system-status-tools.php CHANGED
File without changes
includes/exporter/class-wf-prodimpexpcsv-exporter.php CHANGED
File without changes
includes/exporter/data/data-wf-hidden-meta-columns.php CHANGED
File without changes
includes/exporter/data/data-wf-post-columns.php CHANGED
File without changes
includes/images/Import-Export-for-WooCommerce-Product-Image.png CHANGED
File without changes
includes/images/documentation.png CHANGED
File without changes
includes/images/sample_csv.png CHANGED
File without changes
includes/images/setup.png CHANGED
File without changes
includes/images/stars.png CHANGED
File without changes
includes/images/storefrog.png CHANGED
File without changes
includes/images/support.png CHANGED
File without changes
includes/images/video.png CHANGED
File without changes
includes/images/wf-ajax-loader.gif CHANGED
File without changes
includes/images/wf-failed.png CHANGED
File without changes
includes/images/wf-import.png CHANGED
File without changes
includes/images/wf-notice.png CHANGED
File without changes
includes/images/wf-success.png CHANGED
File without changes
includes/importer/class-wf-csv-parser.php CHANGED
@@ -299,6 +299,9 @@ class WF_CSV_Parser {
299
$postmeta['sale_price'] = $this->hf_currency_formatter($postmeta['sale_price']);
300
$postmeta['regular_price'] = $this->hf_currency_formatter($postmeta['regular_price']);
301
$price = min($postmeta['sale_price'], $postmeta['regular_price']);
302
$postmeta['price'] = $price;
303
} elseif (isset($postmeta['regular_price'])) {
304
$postmeta['price'] = $this->hf_currency_formatter($postmeta['regular_price']);
@@ -327,7 +330,7 @@ class WF_CSV_Parser {
327
}
328
329
if (isset($postmeta['sale_price_dates_to'])) {
330
- $postmeta['sale_price_dates_to'] = empty($postmeta['sale_price_dates_to']) ? '' : strtotime($postmeta['sale_price_dates_to']);
331
}
332
333
// Relative stock updates
@@ -886,5 +889,28 @@ class WF_CSV_Parser {
886
$decimal_seperator = wc_get_price_decimal_separator();
887
return preg_replace("[^0-9\\'.$decimal_seperator.']", "", $price);
888
}
889
890
}
299
$postmeta['sale_price'] = $this->hf_currency_formatter($postmeta['sale_price']);
300
$postmeta['regular_price'] = $this->hf_currency_formatter($postmeta['regular_price']);
301
$price = min($postmeta['sale_price'], $postmeta['regular_price']);
302
+ if(!empty($postmeta['sale_price_dates_from'])|| $postmeta['sale_price_dates_to']){
303
+ $price = $this->wt_save_product_price($postmeta);
304
+ }
305
$postmeta['price'] = $price;
306
} elseif (isset($postmeta['regular_price'])) {
307
$postmeta['price'] = $this->hf_currency_formatter($postmeta['regular_price']);
330
}
331
332
if (isset($postmeta['sale_price_dates_to'])) {
333
+ $postmeta['sale_price_dates_to'] = empty($postmeta['sale_price_dates_to']) ? '' : strtotime($postmeta['sale_price_dates_to']."23:59:59");
334
}
335
336
// Relative stock updates
889
$decimal_seperator = wc_get_price_decimal_separator();
890
return preg_replace("[^0-9\\'.$decimal_seperator.']", "", $price);
891
}
892
+
893
+ public function wt_save_product_price( $post_meta) {
894
+
895
+ $regular_price = $post_meta['regular_price'];
896
+ $price = $regular_price;
897
+ $sale_price = $post_meta['sale_price'];
898
+ $date_from = $post_meta['sale_price_dates_from'];
899
+ $date_to = $post_meta['sale_price_dates_to'];
900
+
901
+ if( $date_to && ! $date_from ) {
902
+ $date_from = strtotime( 'NOW', current_time( 'timestamp' ) );
903
+ $post_meta['sale_price_dates_from'] = $date_from;
904
+ }
905
+
906
+ if( '' !== $sale_price && $date_from && strtotime( $date_from ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) {
907
+ $price = $sale_price;
908
+ }
909
+
910
+ if( $date_to && strtotime( $date_to ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) {
911
+ $price = $regular_price;
912
+ }
913
+ return $price;
914
+ }
915
916
}
includes/importer/class-wf-prodimpexpcsv-importer.php CHANGED
File without changes
includes/importer/class-wf-prodimpexpcsv-product-import.php CHANGED
File without changes
includes/importer/data/data-wf-post-defaults.php CHANGED
File without changes
includes/importer/data/data-wf-postmeta-allowed.php CHANGED
File without changes
includes/importer/data/data-wf-postmeta-defaults.php CHANGED
File without changes
includes/importer/data/data-wf-reserved-fields-pair.php CHANGED
File without changes
includes/importer/data/data-wf-reserved-fields.php CHANGED
File without changes
includes/importer/views/html-wf-import-greeting.php CHANGED
File without changes
includes/importer/views/html-wf-import-options.php CHANGED
File without changes
includes/settings/class-wf-prodimpexpcsv-settings.php CHANGED
File without changes
includes/views/export/html-wf-export-products.php CHANGED
File without changes
includes/views/html-wf-admin-screen.php CHANGED
File without changes
includes/views/html-wf-help-guide.php CHANGED
File without changes
includes/views/import/html-wf-import-products.php CHANGED
File without changes
includes/views/market.php CHANGED
@@ -31,7 +31,7 @@ if ( ! defined( 'ABSPATH' ) ) {
31
<li><?php _e('Manipulate/evaluate data during import.', 'product-import-export-for-woo');?></li>
32
<li><?php _e('Choice to update or skip existing imported products.', 'product-import-export-for-woo');?></li>
33
<li><?php _e('WPML support for simple products.', 'product-import-export-for-woo');?></li>
34
- <li><?php _e('Import/Export file via FTP.', 'product-import-export-for-woo');?></li>
35
<li><?php _e('Import from URL.', 'product-import-export-for-woo');?></li>
36
<li><?php _e('Automatic scheduled import and export.', 'product-import-export-for-woo');?></li>
37
<li><?php _e('Supports product reviews export and import.', 'product-import-export-for-woo');?></li>
31
<li><?php _e('Manipulate/evaluate data during import.', 'product-import-export-for-woo');?></li>
32
<li><?php _e('Choice to update or skip existing imported products.', 'product-import-export-for-woo');?></li>
33
<li><?php _e('WPML support for simple products.', 'product-import-export-for-woo');?></li>
34
+ <li><?php _e('Import/Export file via FTP/sFTP.', 'product-import-export-for-woo');?></li>
35
<li><?php _e('Import from URL.', 'product-import-export-for-woo');?></li>
36
<li><?php _e('Automatic scheduled import and export.', 'product-import-export-for-woo');?></li>
37
<li><?php _e('Supports product reviews export and import.', 'product-import-export-for-woo');?></li>
lang/product-import-export-for-woo-de_DE.mo CHANGED
File without changes
lang/product-import-export-for-woo-de_DE.po CHANGED
File without changes
lang/product-import-export-for-woo-fr_FR.mo CHANGED
File without changes
lang/product-import-export-for-woo-fr_FR.po CHANGED
File without changes
lang/product-import-export-for-woo-hu_HU.mo CHANGED
File without changes
lang/product-import-export-for-woo-hu_HU.po CHANGED
File without changes
lang/product-import-export-for-woo-it_IT.mo CHANGED
File without changes
lang/product-import-export-for-woo-it_IT.po CHANGED
File without changes
license.txt CHANGED
File without changes
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.6.9
9
- WC tested up to: 3.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.6.9");
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.7.0
9
+ WC tested up to: 3.8
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.7.0");
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 ,product, export, import, woocommerce ,csv
5
Requires at least: 3.0.1
6
Tested up to: 5.2.4
7
- Stable tag: 1.6.9
8
License: GPLv3 or later
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
@@ -20,7 +20,7 @@ Product import export plugin allows you to import or export WooCommerce simple 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.7.1.
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.
@@ -48,7 +48,7 @@ Product Import Export Plugin for WooCommerce is the leading tool for Woocommerce
48
&#9989; Manipulate/evaluate data during import.</li>
49
&#9989; Choice to Update or Skip existing imported products. </li>
50
&#9989; WPML support for simple products.</li>
51
- &#9989; Import/Export file via FTP.</li>
52
&#9989; Import from URL.</li>
53
&#9989; Automatic scheduled import and export.</li>
54
&#9989; Supports product reviews export and import.</li>
@@ -153,6 +153,9 @@ By default, admin and store manager are given access to export orders from your
153
154
== Changelog ==
155
156
= 1.6.9 =
157
* Bug Fix: Postmetas not getting imported/updated
158
* Tweak: Filter name changed from "woocommerce_csv_product_postmeta_defaults" to "woocommerce_wf_csv_product_postmeta_defaults".
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.2.4
7
+ Stable tag: 1.7.0
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.8.
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.
48
&#9989; Manipulate/evaluate data during import.</li>
49
&#9989; Choice to Update or Skip existing imported products. </li>
50
&#9989; WPML support for simple products.</li>
51
+ &#9989; Import/Export file via FTP/sFTP.</li>
52
&#9989; Import from URL.</li>
53
&#9989; Automatic scheduled import and export.</li>
54
&#9989; Supports product reviews export and import.</li>
153
154
== Changelog ==
155
156
+ = 1.7.0 =
157
+ * Bug Fix: Price issue with scheduled sales imports. (@derickcpt)
158
+
159
= 1.6.9 =
160
* Bug Fix: Postmetas not getting imported/updated
161
* Tweak: Filter name changed from "woocommerce_csv_product_postmeta_defaults" to "woocommerce_wf_csv_product_postmeta_defaults".
styles/wf-style.css CHANGED
File without changes
welcome/welcome.php CHANGED
File without changes