Order Export & Order Import for WooCommerce - Version 2.2.7

Version Description

2022-08-25 = * WooCommerce 6.8 Tested OK. * Bugfix: Duplicate export button on order and coupon listing pages when both Pro and Free versions are active.

Download this release

Release Info

Developer webtoffee
Plugin Icon 128x128 Order Export & Order Import for WooCommerce
Version 2.2.7
Comparing to
See all releases

Code changes from version 2.2.6 to 2.2.7

admin/css/wt-import-export-for-woo-admin.css CHANGED
@@ -766,7 +766,8 @@ img.tips {
766
  color: #001A69;
767
  list-style: none;
768
  position: relative;
769
- padding-left: 49px;
 
770
  margin: 0 0 15px 0;
771
  display: flex;
772
  align-items: center;
@@ -785,8 +786,8 @@ img.tips {
785
  .wt-ierpro-allfeat li:before{
786
  content: '';
787
  position: absolute;
788
- height: 18px;
789
- width: 18px;
790
  background-image: url(../../assets/images/gopro/tick.svg);
791
  background-size: contain;
792
  background-repeat: no-repeat;
@@ -1172,4 +1173,5 @@ ul.wt-ierpro-newfeat li {
1172
  display: flex;
1173
  }
1174
  }
1175
- /* end marketing */
 
766
  color: #001A69;
767
  list-style: none;
768
  position: relative;
769
+ padding-left: 35px;
770
+ padding-right: 5px;
771
  margin: 0 0 15px 0;
772
  display: flex;
773
  align-items: center;
786
  .wt-ierpro-allfeat li:before{
787
  content: '';
788
  position: absolute;
789
+ height: 16px;
790
+ width: 16px;
791
  background-image: url(../../assets/images/gopro/tick.svg);
792
  background-size: contain;
793
  background-repeat: no-repeat;
1173
  display: flex;
1174
  }
1175
  }
1176
+ /* end marketing */
1177
+ .wt-iew-upgrade-to-pro-new-feature{ display:inline-block; width:60px; height:21px; background: url(../../assets/images/gopro/new_flag.svg) no-repeat; color:#fff; text-align:center; font-weight:normal; padding-left:4px; line-height:20px; font-size:12px; text-shadow:0px 2px 4px rgba(0, 0, 0, 0.35);}
admin/modules/coupon/coupon.php CHANGED
@@ -77,7 +77,7 @@ class Wt_Import_Export_For_Woo_Basic_Coupon {
77
  public function add_coupons_bulk_actions() {
78
  global $post_type, $post_status;
79
 
80
- if ($post_type == 'shop_coupon' && $post_status != 'trash') {
81
  ?>
82
  <script type="text/javascript">
83
  jQuery(document).ready(function ($) {
77
  public function add_coupons_bulk_actions() {
78
  global $post_type, $post_status;
79
 
80
+ if ( 'shop_coupon' === $post_type && 'trash' !== $post_status && !is_plugin_active( 'wt-import-export-for-woo/wt-import-export-for-woo.php' )) {
81
  ?>
82
  <script type="text/javascript">
83
  jQuery(document).ready(function ($) {
admin/modules/order/order.php CHANGED
@@ -83,7 +83,7 @@ class Wt_Import_Export_For_Woo_Basic_Order {
83
  public function wt_add_order_bulk_actions() {
84
  global $post_type, $post_status;
85
 
86
- if ($post_type == 'shop_order' && $post_status != 'trash') {
87
  ?>
88
  <script type="text/javascript">
89
  jQuery(document).ready(function ($) {
83
  public function wt_add_order_bulk_actions() {
84
  global $post_type, $post_status;
85
 
86
+ if ( 'shop_order' === $post_type && 'trash' !== $post_status && !is_plugin_active( 'wt-import-export-for-woo/wt-import-export-for-woo.php' )) {
87
  ?>
88
  <script type="text/javascript">
89
  jQuery(document).ready(function ($) {
assets/images/gopro/new_flag.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg width="43" height="21" viewBox="0 0 43 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="6" width="36.1395" height="21" rx="2" fill="#6E6ADD"/>
3
+ <path d="M0 9.8125L6 5V16L0 9.8125Z" fill="#6E6ADD"/>
4
+ </svg>
helpers/class-wt-security-helper.php CHANGED
@@ -60,6 +60,12 @@ if(!class_exists('Wt_Iew_Sh'))
60
  case 'url_arr':
61
  $val = self::sanitize_arr($val, 'url');
62
  break;
 
 
 
 
 
 
63
  case 'textarea':
64
  $val=sanitize_textarea_field($val);
65
  break;
60
  case 'url_arr':
61
  $val = self::sanitize_arr($val, 'url');
62
  break;
63
+ case 'sanitize_title_with_dashes':
64
+ $val = sanitize_title_with_dashes($val);
65
+ break;
66
+ case 'sanitize_title_with_dashes_arr':
67
+ $val = self::sanitize_arr($val, 'sanitize_title_with_dashes');
68
+ break;
69
  case 'textarea':
70
  $val=sanitize_textarea_field($val);
71
  break;
includes/class-wt-import-export-for-woo.php CHANGED
@@ -80,7 +80,7 @@ class Wt_Import_Export_For_Woo_Basic {
80
  if ( defined( 'WT_O_IEW_VERSION' ) ) {
81
  $this->version = WT_O_IEW_VERSION;
82
  } else {
83
- $this->version = '2.2.6';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
80
  if ( defined( 'WT_O_IEW_VERSION' ) ) {
81
  $this->version = WT_O_IEW_VERSION;
82
  } else {
83
+ $this->version = '2.2.7';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
order-import-export-for-woocommerce.php CHANGED
@@ -6,12 +6,12 @@ Plugin URI: https://wordpress.org/plugins/order-import-export-for-woocommerce/
6
  Description: Export and Import Order detail including line items, From and To your WooCommerce Store.
7
  Author: WebToffee
8
  Author URI: https://www.webtoffee.com/product/woocommerce-order-coupon-subscription-export-import/
9
- Version: 2.2.6
10
  Text Domain: order-import-export-for-woocommerce
11
  Domain Path: /languages
12
  Requires at least: 3.0
13
  Requires PHP: 5.6
14
- WC tested up to: 6.7
15
  License: GPLv3
16
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
17
  */
@@ -48,7 +48,7 @@ if ( !defined( 'WT_IEW_DEBUG_BASIC_TROUBLESHOOT' ) ) {
48
  * Start at version 1.0.0 and use SemVer - https://semver.org
49
  * Rename this for your plugin and update it as you release new versions.
50
  */
51
- define( 'WT_O_IEW_VERSION', '2.2.6' );
52
 
53
  /**
54
  * The code that runs during plugin activation.
@@ -262,10 +262,11 @@ function wt_order_addon_basic_gopro_content() {
262
  ?>
263
  <div class="wt-ier-coupon wt-ier-order wt-ier-gopro-cta wt-ierpro-features" style="display: none;">
264
  <ul class="ticked-list wt-ierpro-allfeat">
265
- <li><?php _e('All free version features'); ?></li>
266
- <li><?php _e('Import and export subscription orders'); ?></li>
267
- <li><?php _e('XML file type support'); ?></li>
268
- <li><?php _e('Import and export custom fields and hidden metadata'); ?></li>
 
269
  <li><?php _e('Run scheduled automatic import and export'); ?></li>
270
  <li><?php _e('Import from URL, FTP/SFTP'); ?></li>
271
  <li><?php _e('Export to FTP/SFTP'); ?></li>
@@ -291,7 +292,7 @@ function export_csv_linkin_order_listing_page($which) {
291
 
292
  $currentScreen = get_current_screen();
293
 
294
- if ('edit-shop_order' === $currentScreen->id || 'edit-shop_coupon' === $currentScreen->id) {
295
  $post_type = ( 'edit-shop_order' === $currentScreen->id ) ? 'order' : 'coupon';
296
  $style = ( 'order' === $post_type ) ? 'style="height:32px;"' : '';
297
  echo '<a target="_blank" href="' . admin_url('admin.php?page=wt_import_export_for_woo_basic_export&wt_to_export='.$post_type.'') . '" class="button"'.$style.' >' . __('Export to CSV') . ' </a>';
6
  Description: Export and Import Order detail including line items, From and To your WooCommerce Store.
7
  Author: WebToffee
8
  Author URI: https://www.webtoffee.com/product/woocommerce-order-coupon-subscription-export-import/
9
+ Version: 2.2.7
10
  Text Domain: order-import-export-for-woocommerce
11
  Domain Path: /languages
12
  Requires at least: 3.0
13
  Requires PHP: 5.6
14
+ WC tested up to: 6.8
15
  License: GPLv3
16
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
17
  */
48
  * Start at version 1.0.0 and use SemVer - https://semver.org
49
  * Rename this for your plugin and update it as you release new versions.
50
  */
51
+ define( 'WT_O_IEW_VERSION', '2.2.7' );
52
 
53
  /**
54
  * The code that runs during plugin activation.
262
  ?>
263
  <div class="wt-ier-coupon wt-ier-order wt-ier-gopro-cta wt-ierpro-features" style="display: none;">
264
  <ul class="ticked-list wt-ierpro-allfeat">
265
+ <li><?php _e('Import and export in XLS and XLSX formats'); ?><span class="wt-iew-upgrade-to-pro-new-feature"><?php esc_html_e( 'New' ); ?></span></li>
266
+ <li><?php _e('All free version features'); ?></li>
267
+ <li><?php _e('XML file type support'); ?></li>
268
+ <li><?php _e('Import and export subscription orders'); ?></li>
269
+ <li><?php _e('Export and import custom fields and third-party plugin fields'); ?></li>
270
  <li><?php _e('Run scheduled automatic import and export'); ?></li>
271
  <li><?php _e('Import from URL, FTP/SFTP'); ?></li>
272
  <li><?php _e('Export to FTP/SFTP'); ?></li>
292
 
293
  $currentScreen = get_current_screen();
294
 
295
+ if ( ( 'edit-shop_order' === $currentScreen->id || 'edit-shop_coupon' === $currentScreen->id ) && !is_plugin_active( 'wt-import-export-for-woo/wt-import-export-for-woo.php' ) ) {
296
  $post_type = ( 'edit-shop_order' === $currentScreen->id ) ? 'order' : 'coupon';
297
  $style = ( 'order' === $post_type ) ? 'style="height:32px;"' : '';
298
  echo '<a target="_blank" href="' . admin_url('admin.php?page=wt_import_export_for_woo_basic_export&wt_to_export='.$post_type.'') . '" class="button"'.$style.' >' . __('Export to CSV') . ' </a>';
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: order export, woocommerce, order, export, csv, order import, woocommerce e
5
  Requires at least: 3.0.1
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
- Stable tag: 2.2.6
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -28,7 +28,7 @@ The following are functionalities offered by the basic version of the plugin.
28
  &#128312; Bulk update WooCommerce orders and coupons.
29
  &#128312; Compatible with YITH WooCommerce Order Tracking plugin.
30
  &#128312; Supports various export filters (order status, product, coupon, customer, date range)
31
- &#128312; Tested OK with WooCommerce 6.7
32
  &#128312; Tested OK with WordPress 6.0
33
  &#128312; Tested OK with PHP 8.0
34
 
@@ -60,22 +60,15 @@ More information about the setup of the plugin and a sample CSV that is taken as
60
 
61
  = Order Export & Order Import for WooCommerce Premium Version Features =
62
 
63
- &#9989; Export WooCommerce Orders to CSV file.
64
- &#9989; Import WooCommerce Orders from CSV file.
65
- &#9989; Export Subscription Orders to CSV file.
66
- &#9989; Import Subscription Orders from CSV file.
67
- &#9989; Import Coupons from CSV file.
68
- &#9989; Export Coupons to CSV file.
69
- &#9989; Importing order meta to WooCommerce.
70
- &#9989; Export Filters(Order Status, Product, Coupon Type, Customer etc)
71
- &#9989; Change values while import using Evaluation Field feature.
72
  &#9989; <a href="https://www.webtoffee.com/order-import-export-plugin-for-woocommerce-third-party-compatibility/">Support for third-party plugins</a>.
73
  &#9989; Column Mapping Feature to Import from any CSV format.
74
  &#9989; Import and Export via FTP.
75
  &#9989; Schedule automatic import using Cron Job Feature.
76
  &#9989; Scheduled export using Cron Job Feature.
77
- &#9989; Import WooCommerce Orders from XML.
78
- &#9989; Export WooCommerce Orders to XML.
79
  &#9989; Excellent Support for setting it up!
80
 
81
 
@@ -229,6 +222,9 @@ Yes.
229
 
230
  == Changelog ==
231
 
 
 
 
232
  = 2.2.6 2022-08-08 =
233
  * WooCommerce 6.7 Tested OK.
234
  * Bugfix: Orders search by billing/shipping address not working for imported orders.
@@ -515,7 +511,6 @@ Yes.
515
 
516
  == Upgrade Notice ==
517
 
518
- = 2.2.6 =
519
- * WooCommerce 6.7 Tested OK.
520
- * Bugfix: Orders search by billing/shipping address not working for imported orders.
521
- * Bugfix: Delimiter reset when using the re-run option from the History section.
5
  Requires at least: 3.0.1
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 2.2.7
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
28
  &#128312; Bulk update WooCommerce orders and coupons.
29
  &#128312; Compatible with YITH WooCommerce Order Tracking plugin.
30
  &#128312; Supports various export filters (order status, product, coupon, customer, date range)
31
+ &#128312; Tested OK with WooCommerce 6.8
32
  &#128312; Tested OK with WordPress 6.0
33
  &#128312; Tested OK with PHP 8.0
34
 
60
 
61
  = Order Export & Order Import for WooCommerce Premium Version Features =
62
 
63
+ &#9989; Export WooCommerce orders, subscriptions and coupons to CSV/XML/Excel (XLS/XLSX) file formats.
64
+ &#9989; Import WooCommerce orders, subscriptions and coupons using CSV/XML/Excel (XLS/XLSX) file formats.
65
+ &#9989; Import and export subscription orders.
66
+ &#9989; Import and export custom fields and third-party plugin fields.
 
 
 
 
 
67
  &#9989; <a href="https://www.webtoffee.com/order-import-export-plugin-for-woocommerce-third-party-compatibility/">Support for third-party plugins</a>.
68
  &#9989; Column Mapping Feature to Import from any CSV format.
69
  &#9989; Import and Export via FTP.
70
  &#9989; Schedule automatic import using Cron Job Feature.
71
  &#9989; Scheduled export using Cron Job Feature.
 
 
72
  &#9989; Excellent Support for setting it up!
73
 
74
 
222
 
223
  == Changelog ==
224
 
225
+ = 2.2.7 2022-08-25 =
226
+ * WooCommerce 6.8 Tested OK.
227
+ * Bugfix: Duplicate export button on order and coupon listing pages when both Pro and Free versions are active.
228
  = 2.2.6 2022-08-08 =
229
  * WooCommerce 6.7 Tested OK.
230
  * Bugfix: Orders search by billing/shipping address not working for imported orders.
511
 
512
  == Upgrade Notice ==
513
 
514
+ = 2.2.7 =
515
+ * WooCommerce 6.8 Tested OK.
516
+ * Bugfix: Duplicate export button on order and coupon listing pages when both Pro and Free versions are active.