Version Description
- WP 5.9 Tested OK.
- Bug Fix: Issue with exporting SKU with + symbol.
Download this release
Release Info
Developer | webtoffee |
Plugin | Product Import Export for WooCommerce |
Version | 2.1.6 |
Comparing to | |
See all releases |
Code changes from version 2.1.5 to 2.1.6
admin/class-wt-import-export-for-woo-admin.php
CHANGED
@@ -378,7 +378,7 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
|
|
378 |
{
|
379 |
if(is_plugin_active("{$module_path}/{$module_path}.php"))
|
380 |
{
|
381 |
-
$module_file=
|
382 |
if(file_exists($module_file))
|
383 |
{
|
384 |
self::$existing_modules[]=$module_key;
|
378 |
{
|
379 |
if(is_plugin_active("{$module_path}/{$module_path}.php"))
|
380 |
{
|
381 |
+
$module_file=WP_PLUGIN_DIR."/{$module_path}/admin/modules/$module_key/$module_key.php";
|
382 |
if(file_exists($module_file))
|
383 |
{
|
384 |
self::$existing_modules[]=$module_key;
|
admin/modules/product/export/export.php
CHANGED
@@ -209,12 +209,13 @@ class Wt_Import_Export_For_Woo_Basic_Product_Export {
|
|
209 |
} else {
|
210 |
$product->meta->$meta = self::format_export_meta($meta_value, $meta);
|
211 |
}
|
212 |
-
} else {
|
|
|
213 |
$clean_meta_key = ltrim($meta, '_');
|
214 |
if(in_array($clean_meta_key, $standard_meta_columns)){
|
215 |
$meta = $clean_meta_key;
|
216 |
}
|
217 |
-
$product->meta->$meta =
|
218 |
}
|
219 |
}
|
220 |
// Product attributes
|
@@ -570,7 +571,7 @@ class Wt_Import_Export_For_Woo_Basic_Product_Export {
|
|
570 |
$stock_status = self::format_data($product->meta->$column);
|
571 |
$product_type = ( WC()->version < '3.0' ) ? $product_object->product_type : $product_object->get_type();
|
572 |
$row[$column] = !empty($stock_status) ? $stock_status : ( ( 'variable' == $product_type || 'variable-subscription' == $product_type ) ? '' : 'instock' );
|
573 |
-
} elseif(('_sku' == $column)) {
|
574 |
$row[$column] = $product->meta->$column;
|
575 |
}else{
|
576 |
$row[$column] = self::format_data($product->meta->$column);
|
@@ -600,13 +601,23 @@ class Wt_Import_Export_For_Woo_Basic_Product_Export {
|
|
600 |
* @param string $meta name of meta key
|
601 |
* @return string
|
602 |
*/
|
603 |
-
public static function format_export_meta($meta_value, $meta) {
|
604 |
switch ($meta) {
|
|
|
605 |
case '_sale_price_dates_from' :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
606 |
case '_sale_price_dates_to' :
|
607 |
-
|
608 |
-
|
609 |
-
|
|
|
|
|
610 |
break;
|
611 |
case '_upsell_ids' :
|
612 |
case '_crosssell_ids' :
|
209 |
} else {
|
210 |
$product->meta->$meta = self::format_export_meta($meta_value, $meta);
|
211 |
}
|
212 |
+
} else {
|
213 |
+
$formatted_mdata = self::format_export_meta($meta_value, $meta,$product_object);
|
214 |
$clean_meta_key = ltrim($meta, '_');
|
215 |
if(in_array($clean_meta_key, $standard_meta_columns)){
|
216 |
$meta = $clean_meta_key;
|
217 |
}
|
218 |
+
$product->meta->$meta = $formatted_mdata;
|
219 |
}
|
220 |
}
|
221 |
// Product attributes
|
571 |
$stock_status = self::format_data($product->meta->$column);
|
572 |
$product_type = ( WC()->version < '3.0' ) ? $product_object->product_type : $product_object->get_type();
|
573 |
$row[$column] = !empty($stock_status) ? $stock_status : ( ( 'variable' == $product_type || 'variable-subscription' == $product_type ) ? '' : 'instock' );
|
574 |
+
} elseif(('_sku' == $column || 'sku' == $column)) {
|
575 |
$row[$column] = $product->meta->$column;
|
576 |
}else{
|
577 |
$row[$column] = self::format_data($product->meta->$column);
|
601 |
* @param string $meta name of meta key
|
602 |
* @return string
|
603 |
*/
|
604 |
+
public static function format_export_meta($meta_value, $meta,$product_object=false) {
|
605 |
switch ($meta) {
|
606 |
+
case 'sale_price_dates_from' :
|
607 |
case '_sale_price_dates_from' :
|
608 |
+
if($product_object){
|
609 |
+
$sale_price_dates_from_timestamp = $product_object->get_date_on_sale_from( 'edit' ) ? $product_object->get_date_on_sale_from( 'edit' )->getOffsetTimestamp() : false;
|
610 |
+
$sale_price_dates_from = $sale_price_dates_from_timestamp ? date_i18n( 'Y-m-d', $sale_price_dates_from_timestamp ) : '';
|
611 |
+
return $sale_price_dates_from;
|
612 |
+
}
|
613 |
+
break;
|
614 |
+
case 'sale_price_dates_to' :
|
615 |
case '_sale_price_dates_to' :
|
616 |
+
if($product_object){
|
617 |
+
$sale_price_dates_to_timestamp = $product_object->get_date_on_sale_to( 'edit' ) ? $product_object->get_date_on_sale_to( 'edit' )->getOffsetTimestamp() : false;
|
618 |
+
$sale_price_dates_to = $sale_price_dates_to_timestamp ? date_i18n( 'Y-m-d', $sale_price_dates_to_timestamp ) : '';
|
619 |
+
return $sale_price_dates_to;
|
620 |
+
}
|
621 |
break;
|
622 |
case '_upsell_ids' :
|
623 |
case '_crosssell_ids' :
|
includes/class-wt-import-export-for-woo.php
CHANGED
@@ -80,7 +80,7 @@ class Wt_Import_Export_For_Woo_Basic {
|
|
80 |
if ( defined( 'WT_P_IEW_VERSION' ) ) {
|
81 |
$this->version = WT_P_IEW_VERSION;
|
82 |
} else {
|
83 |
-
$this->version = '2.1.
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
80 |
if ( defined( 'WT_P_IEW_VERSION' ) ) {
|
81 |
$this->version = WT_P_IEW_VERSION;
|
82 |
} else {
|
83 |
+
$this->version = '2.1.6';
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
product-import-export-for-woo.php
CHANGED
@@ -5,7 +5,7 @@
|
|
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: 2.1.
|
9 |
WC tested up to: 6.1
|
10 |
License: GPLv3
|
11 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
@@ -43,7 +43,7 @@ if ( !defined( 'WT_IEW_DEBUG_BASIC_TROUBLESHOOT' ) ) {
|
|
43 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
44 |
* Rename this for your plugin and update it as you release new versions.
|
45 |
*/
|
46 |
-
define( 'WT_P_IEW_VERSION', '2.1.
|
47 |
|
48 |
/**
|
49 |
* The code that runs during plugin activation.
|
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: 2.1.6
|
9 |
WC tested up to: 6.1
|
10 |
License: GPLv3
|
11 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
43 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
44 |
* Rename this for your plugin and update it as you release new versions.
|
45 |
*/
|
46 |
+
define( 'WT_P_IEW_VERSION', '2.1.6' );
|
47 |
|
48 |
/**
|
49 |
* The code that runs during plugin activation.
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: webtoffee
|
|
3 |
Donate link: https://www.webtoffee.com/plugins/
|
4 |
Tags: product export, product import, CSV import export, woocommerce, CSV, product, export, import, woocommerce product import, woocommerce import products, export woocommerce products, import products into woocommerce
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.1.
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -194,6 +194,9 @@ Yes. You can import grouped, affiliate/external products in addition to simple p
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
197 |
= 2.1.5 =
|
198 |
* Add – Supports auto mapping of default fields from the CSV exported using default WC export tool.
|
199 |
* Add - Option to include Taxonomies (categories/tags/shipping-class), attributes in quick export.
|
@@ -539,6 +542,6 @@ Yes. You can import grouped, affiliate/external products in addition to simple p
|
|
539 |
|
540 |
== Upgrade Notice ==
|
541 |
|
542 |
-
= 2.1.
|
543 |
-
*
|
544 |
-
*
|
3 |
Donate link: https://www.webtoffee.com/plugins/
|
4 |
Tags: product export, product import, CSV import export, woocommerce, CSV, product, export, import, woocommerce product import, woocommerce import products, export woocommerce products, import products into woocommerce
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 5.9
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.1.6
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
194 |
|
195 |
== Changelog ==
|
196 |
|
197 |
+
= 2.1.6 =
|
198 |
+
* WP 5.9 Tested OK.
|
199 |
+
* Bug Fix: Issue with exporting SKU with + symbol.
|
200 |
= 2.1.5 =
|
201 |
* Add – Supports auto mapping of default fields from the CSV exported using default WC export tool.
|
202 |
* Add - Option to include Taxonomies (categories/tags/shipping-class), attributes in quick export.
|
542 |
|
543 |
== Upgrade Notice ==
|
544 |
|
545 |
+
= 2.1.6 =
|
546 |
+
* WP 5.9 Tested OK.
|
547 |
+
* Bug Fix: Issue with exporting SKU with + symbol.
|