Order Export & Order Import for WooCommerce - Version 1.2.9

Version Description

  • Improved UI
  • Uninstall feedback
Download this release

Release Info

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

Code changes from version 1.2.8 to 1.2.9

includes/class-wf-orderimpexp-plugin-uninstall-feedback.php ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (!class_exists('WF_OrderImpExp_Uninstall_Feedback')) :
3
+
4
+ /**
5
+ * Uninstall feedback class
6
+ */
7
+ class WF_OrderImpExp_Uninstall_Feedback {
8
+
9
+ public function __construct() {
10
+ add_action('admin_footer', array($this, 'deactivate_scripts'));
11
+ add_action('wp_ajax_wforderimpexp_submit_uninstall_reason', array($this, "send_uninstall_reason"));
12
+ }
13
+
14
+ private function get_uninstall_reasons() {
15
+
16
+ $reasons = array(
17
+ array(
18
+ 'id' => 'could-not-understand',
19
+ 'text' => __('I couldn\'t understand how to make it work', 'wf_order_import_export'),
20
+ 'type' => 'textarea',
21
+ 'placeholder' => __('Would you like us to assist you?', 'wf_order_import_export')
22
+ ),
23
+ array(
24
+ 'id' => 'found-better-plugin',
25
+ 'text' => __('I found a better plugin', 'wf_order_import_export'),
26
+ 'type' => 'text',
27
+ 'placeholder' => __('Which plugin?', 'wf_order_import_export')
28
+ ),
29
+ array(
30
+ 'id' => 'not-have-that-feature',
31
+ 'text' => __('The plugin is great, but I need specific feature that you don\'t support', 'wf_order_import_export'),
32
+ 'type' => 'textarea',
33
+ 'placeholder' => __('Could you tell us more about that feature?', 'wf_order_import_export')
34
+ ),
35
+ array(
36
+ 'id' => 'is-not-working',
37
+ 'text' => __('The plugin is not working', 'wf_order_import_export'),
38
+ 'type' => 'textarea',
39
+ 'placeholder' => __('Could you tell us a bit more whats not working?', 'wf_order_import_export')
40
+ ),
41
+ array(
42
+ 'id' => 'looking-for-other',
43
+ 'text' => __('It\'s not what I was looking for', 'wf_order_import_export'),
44
+ 'type' => 'textarea',
45
+ 'placeholder' => 'Could you tell us a bit more?'
46
+ ),
47
+ array(
48
+ 'id' => 'did-not-work-as-expected',
49
+ 'text' => __('The plugin didn\'t work as expected', 'wf_order_import_export'),
50
+ 'type' => 'textarea',
51
+ 'placeholder' => __('What did you expect?', 'wf_order_import_export')
52
+ ),
53
+ array(
54
+ 'id' => 'other',
55
+ 'text' => __('Other', 'wf_order_import_export'),
56
+ 'type' => 'textarea',
57
+ 'placeholder' => __('Could you tell us a bit more?', 'wf_order_import_export')
58
+ ),
59
+ );
60
+
61
+ return $reasons;
62
+ }
63
+
64
+ public function deactivate_scripts() {
65
+
66
+ global $pagenow;
67
+ if ('plugins.php' != $pagenow) {
68
+ return;
69
+ }
70
+ $reasons = $this->get_uninstall_reasons();
71
+ ?>
72
+ <div class="wforderimpexp-modal" id="wforderimpexp-wforderimpexp-modal">
73
+ <div class="wforderimpexp-modal-wrap">
74
+ <div class="wforderimpexp-modal-header">
75
+ <h3><?php _e('If you have a moment, please let us know why you are deactivating:', 'wf_order_import_export'); ?></h3>
76
+ </div>
77
+ <div class="wforderimpexp-modal-body">
78
+ <ul class="reasons">
79
+ <?php foreach ($reasons as $reason) { ?>
80
+ <li data-type="<?php echo esc_attr($reason['type']); ?>" data-placeholder="<?php echo esc_attr($reason['placeholder']); ?>">
81
+ <label><input type="radio" name="selected-reason" value="<?php echo $reason['id']; ?>"> <?php echo $reason['text']; ?></label>
82
+ </li>
83
+ <?php } ?>
84
+ </ul>
85
+ </div>
86
+ <div class="wforderimpexp-modal-footer">
87
+ <a href="#" class="dont-bother-me"><?php _e('I rather wouldn\'t say', 'wf_order_import_export'); ?></a>
88
+ <button class="button-primary wforderimpexp-model-submit"><?php _e('Submit & Deactivate', 'wf_order_import_export'); ?></button>
89
+ <button class="button-secondary wforderimpexp-model-cancel"><?php _e('Cancel', 'wf_order_import_export'); ?></button>
90
+ </div>
91
+ </div>
92
+ </div>
93
+
94
+ <style type="text/css">
95
+ .wforderimpexp-modal {
96
+ position: fixed;
97
+ z-index: 99999;
98
+ top: 0;
99
+ right: 0;
100
+ bottom: 0;
101
+ left: 0;
102
+ background: rgba(0,0,0,0.5);
103
+ display: none;
104
+ }
105
+ .wforderimpexp-modal.modal-active {display: block;}
106
+ .wforderimpexp-modal-wrap {
107
+ width: 50%;
108
+ position: relative;
109
+ margin: 10% auto;
110
+ background: #fff;
111
+ }
112
+ .wforderimpexp-modal-header {
113
+ border-bottom: 1px solid #eee;
114
+ padding: 8px 20px;
115
+ }
116
+ .wforderimpexp-modal-header h3 {
117
+ line-height: 150%;
118
+ margin: 0;
119
+ }
120
+ .wforderimpexp-modal-body {padding: 5px 20px 20px 20px;}
121
+ .wforderimpexp-modal-body .input-text,.wforderimpexp-modal-body textarea {width:75%;}
122
+ .wforderimpexp-modal-body .reason-input {
123
+ margin-top: 5px;
124
+ margin-left: 20px;
125
+ }
126
+ .wforderimpexp-modal-footer {
127
+ border-top: 1px solid #eee;
128
+ padding: 12px 20px;
129
+ text-align: right;
130
+ }
131
+ </style>
132
+ <script type="text/javascript">
133
+ (function ($) {
134
+ $(function () {
135
+ var modal = $('#wforderimpexp-wforderimpexp-modal');
136
+ var deactivateLink = '';
137
+ $('#the-list').on('click', 'a.wforderimpexp-deactivate-link', function (e) {
138
+ e.preventDefault();
139
+ modal.addClass('modal-active');
140
+ deactivateLink = $(this).attr('href');
141
+ modal.find('a.dont-bother-me').attr('href', deactivateLink).css('float', 'left');
142
+ });
143
+ modal.on('click', 'button.wforderimpexp-model-cancel', function (e) {
144
+ e.preventDefault();
145
+ modal.removeClass('modal-active');
146
+ });
147
+ modal.on('click', 'input[type="radio"]', function () {
148
+ var parent = $(this).parents('li:first');
149
+ modal.find('.reason-input').remove();
150
+ var inputType = parent.data('type'),
151
+ inputPlaceholder = parent.data('placeholder'),
152
+ reasonInputHtml = '<div class="reason-input">' + (('text' === inputType) ? '<input type="text" class="input-text" size="40" />' : '<textarea rows="5" cols="45"></textarea>') + '</div>';
153
+
154
+ if (inputType !== '') {
155
+ parent.append($(reasonInputHtml));
156
+ parent.find('input, textarea').attr('placeholder', inputPlaceholder).focus();
157
+ }
158
+ });
159
+
160
+ modal.on('click', 'button.wforderimpexp-model-submit', function (e) {
161
+ e.preventDefault();
162
+ var button = $(this);
163
+ if (button.hasClass('disabled')) {
164
+ return;
165
+ }
166
+ var $radio = $('input[type="radio"]:checked', modal);
167
+ var $selected_reason = $radio.parents('li:first'),
168
+ $input = $selected_reason.find('textarea, input[type="text"]');
169
+
170
+ $.ajax({
171
+ url: ajaxurl,
172
+ type: 'POST',
173
+ data: {
174
+ action: 'wforderimpexp_submit_uninstall_reason',
175
+ reason_id: (0 === $radio.length) ? 'none' : $radio.val(),
176
+ reason_info: (0 !== $input.length) ? $input.val().trim() : ''
177
+ },
178
+ beforeSend: function () {
179
+ button.addClass('disabled');
180
+ button.text('Processing...');
181
+ },
182
+ complete: function () {
183
+ window.location.href = deactivateLink;
184
+ }
185
+ });
186
+ });
187
+ });
188
+ }(jQuery));
189
+ </script>
190
+ <?php
191
+ }
192
+
193
+ public function send_uninstall_reason() {
194
+
195
+ global $wpdb;
196
+
197
+ if (!isset($_POST['reason_id'])) {
198
+ wp_send_json_error();
199
+ }
200
+
201
+ //$current_user = wp_get_current_user();
202
+
203
+ $data = array(
204
+ 'reason_id' => sanitize_text_field($_POST['reason_id']),
205
+ 'plugin' => "orderimpexp",
206
+ 'auth' => 'wforderimpexp_uninstall_1234#',
207
+ 'date' => gmdate("M d, Y h:i:s A"),
208
+ 'url' => home_url(),
209
+ 'user_email' => '', //$current_user->user_email,
210
+ 'reason_info' => isset($_REQUEST['reason_info']) ? trim(stripslashes($_REQUEST['reason_info'])) : '',
211
+ 'software' => $_SERVER['SERVER_SOFTWARE'],
212
+ 'php_version' => phpversion(),
213
+ 'mysql_version' => $wpdb->db_version(),
214
+ 'wp_version' => get_bloginfo('version'),
215
+ 'wc_version' => (!defined('WC_VERSION')) ? '' : WC_VERSION,
216
+ 'locale' => get_locale(),
217
+ 'multisite' => is_multisite() ? 'Yes' : 'No',
218
+ 'wforderimpexp_version' => WF_ORDERIMPEXP_CURRENT_VERSION
219
+ );
220
+ // Write an action/hook here in webtoffe to recieve the data
221
+ $resp = wp_remote_post('http://feedback.webtoffee.com/wp-json/wforderimpexp/v1/uninstall', array(
222
+ 'method' => 'POST',
223
+ 'timeout' => 45,
224
+ 'redirection' => 5,
225
+ 'httpversion' => '1.0',
226
+ 'blocking' => false,
227
+ 'headers' => array('user-agent' => 'wforderimpexp/' . md5(esc_url(home_url())) . ';'),
228
+ 'body' => $data,
229
+ 'cookies' => array()
230
+ )
231
+ );
232
+
233
+ wp_send_json_success();
234
+ }
235
+
236
+ }
237
+ new WF_OrderImpExp_Uninstall_Feedback();
238
+
239
+ endif;
includes/importer/views-coupon/html-wf-import-greeting.php CHANGED
@@ -1,5 +1,14 @@
1
- <div>
2
- <p><?php _e( 'You can import coupons (in CSV format) in to the shop using any of below methods.', 'wf_order_import_export' ); ?></p>
 
 
 
 
 
 
 
 
 
3
 
4
  <?php if ( ! empty( $upload_dir['error'] ) ) : ?>
5
  <div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:'); ?></p>
@@ -10,7 +19,7 @@
10
  <tbody>
11
  <tr>
12
  <th>
13
- <label for="upload"><?php _e( 'Method 1: Select a file from your computer' ); ?></label>
14
  </th>
15
  <td>
16
  <input type="file" id="upload" name="import" size="25" />
@@ -27,4 +36,8 @@
27
  </p>
28
  </form>
29
  <?php endif; ?>
 
 
 
 
30
  </div>
1
+ <div class="wrap woocommerce">
2
+ <div class="icon32" id="icon-woocommerce-importer"><br></div>
3
+ <h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
4
+ <a href="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex') ?>" class="nav-tab"><?php _e('Order Import / Export', 'wf_order_import_export'); ?></a>
5
+ <a href="<?php echo admin_url('admin.php?page=wf_coupon_csv_im_ex&tab=coupon') ?>" class="nav-tab nav-tab-active"><?php _e('Coupon Import / Export', 'wf_order_import_export'); ?></a>
6
+ <a href="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex&tab=subscription') ?>" class="nav-tab"><?php _e('Subscription Import / Export', 'wf_order_import_export'); ?></a>
7
+ <a href="https://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" class="nav-tab nav-tab-premium"><?php _e('Upgrade to Premium for More Features', 'wf_order_import_export'); ?></a>
8
+ </h2>
9
+ <div class="orderimpexp-main-box">
10
+ <div class="tool-box bg-white p-20p orderimpexp-view">
11
+ <p><?php _e( 'You can import coupons (in CSV format) in to the shop using below methods.', 'wf_order_import_export' ); ?></p>
12
 
13
  <?php if ( ! empty( $upload_dir['error'] ) ) : ?>
14
  <div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:'); ?></p>
19
  <tbody>
20
  <tr>
21
  <th>
22
+ <label for="upload"><?php _e( 'Select a file from your computer' ); ?></label>
23
  </th>
24
  <td>
25
  <input type="file" id="upload" name="import" size="25" />
36
  </p>
37
  </form>
38
  <?php endif; ?>
39
+ </div>
40
+ <?php include(WT_OrdImpExpCsv_BASE . 'includes/views/market.php'); ?>
41
+ <div class="clearfix"></div>
42
+ </div>
43
  </div>
includes/importer/views/html-wf-import-greeting.php CHANGED
@@ -1,30 +1,43 @@
1
- <div>
2
- <p><?php _e( 'You can import orders (in CSV format) in to the shop using any of below methods.', 'wf_order_import_export' ); ?></p>
 
 
 
 
 
 
 
 
 
3
 
4
- <?php if ( ! empty( $upload_dir['error'] ) ) : ?>
5
- <div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:'); ?></p>
6
- <p><strong><?php echo $upload_dir['error']; ?></strong></p></div>
7
- <?php else : ?>
8
- <form enctype="multipart/form-data" id="import-upload-form" method="post" action="<?php echo esc_attr(wp_nonce_url($action, 'import-upload')); ?>">
9
- <table class="form-table">
10
- <tbody>
11
- <tr>
12
- <th>
13
- <label for="upload"><?php _e( 'Method 1: Select a file from your computer' ); ?></label>
14
- </th>
15
- <td>
16
- <input type="file" id="upload" name="import" size="25" />
17
- <input type="hidden" name="action" value="save" />
18
- <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
19
- <small><?php printf( __('Maximum size: %s' ), $size ); ?></small>
20
- </td>
21
- </tr>
22
-
23
- </tbody>
24
- </table>
25
- <p class="submit">
26
- <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Upload file and import' ); ?>" />
27
- </p>
28
- </form>
29
- <?php endif; ?>
 
 
 
 
30
  </div>
1
+ <div class="wrap woocommerce">
2
+ <div class="icon32" id="icon-woocommerce-importer"><br></div>
3
+ <h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
4
+ <a href="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex') ?>" class="nav-tab nav-tab-active"><?php _e('Order Import / Export', 'wf_order_import_export'); ?></a>
5
+ <a href="<?php echo admin_url('admin.php?page=wf_coupon_csv_im_ex&tab=coupon') ?>" class="nav-tab"><?php _e('Coupon Import / Export', 'wf_order_import_export'); ?></a>
6
+ <a href="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex&tab=subscription') ?>" class="nav-tab"><?php _e('Subscription Import / Export', 'wf_order_import_export'); ?></a>
7
+ <a href="https://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" class="nav-tab nav-tab-premium"><?php _e('Upgrade to Premium for More Features', 'wf_order_import_export'); ?></a>
8
+ </h2>
9
+ <div class="orderimpexp-main-box">
10
+ <div class="tool-box bg-white p-20p orderimpexp-view">
11
+ <p><?php _e('You can import orders (in CSV format) in to the shop using below methods.', 'wf_order_import_export'); ?></p>
12
 
13
+ <?php if (!empty($upload_dir['error'])) : ?>
14
+ <div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:'); ?></p>
15
+ <p><strong><?php echo $upload_dir['error']; ?></strong></p></div>
16
+ <?php else : ?>
17
+ <form enctype="multipart/form-data" id="import-upload-form" method="post" action="<?php echo esc_attr(wp_nonce_url($action, 'import-upload')); ?>">
18
+ <table class="form-table">
19
+ <tbody>
20
+ <tr>
21
+ <th>
22
+ <label for="upload"><?php _e('Select a file from your computer'); ?></label>
23
+ </th>
24
+ <td>
25
+ <input type="file" id="upload" name="import" size="25" />
26
+ <input type="hidden" name="action" value="save" />
27
+ <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
28
+ <small><?php printf(__('Maximum size: %s'), $size); ?></small>
29
+ </td>
30
+ </tr>
31
+
32
+ </tbody>
33
+ </table>
34
+ <p class="submit">
35
+ <input type="submit" class="button button-primary" value="<?php esc_attr_e('Upload file and import'); ?>" />
36
+ </p>
37
+ </form>
38
+ <?php endif; ?>
39
+ </div>
40
+ <?php include(WT_OrdImpExpCsv_BASE . 'includes/views/market.php'); ?>
41
+ <div class="clearfix"></div>
42
+ </div>
43
  </div>
includes/importer/views/html-wf-import-options.php CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  <form action="<?php echo admin_url('admin.php?import=' . $this->import_page . '&step=2&merge=' . $merge); ?>" method="post" id="nomap">
2
  <?php wp_nonce_field('import-woocommerce'); ?>
3
  <input type="hidden" name="import_id" value="<?php echo $this->id; ?>" />
@@ -14,4 +23,5 @@
14
  jQuery(document).ready(function(){
15
  jQuery("form#nomap").submit();
16
  });
17
- </script>
 
1
+ <div class="wrap woocommerce">
2
+ <div class="icon32" id="icon-woocommerce-importer"><br></div>
3
+ <h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
4
+ <a href="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex') ?>" class="nav-tab <?php echo ($tab == 'import') ? 'nav-tab-active' : ''; ?>"><?php _e('Order Import / Export', 'wf_order_import_export'); ?></a>
5
+ <a href="<?php echo admin_url('admin.php?page=wf_coupon_csv_im_ex&tab=coupon') ?>" class="nav-tab <?php echo ($tab == 'coupon') ? 'nav-tab-active' : ''; ?>"><?php _e('Coupon Import / Export', 'wf_order_import_export'); ?></a>
6
+ <a href="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex&tab=subscription') ?>" class="nav-tab <?php echo ($tab == 'subscription') ? 'nav-tab-active' : ''; ?>"><?php _e('Subscription Import / Export', 'wf_order_import_export'); ?></a>
7
+ <a href="https://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" class="nav-tab nav-tab-premium"><?php _e('Upgrade to Premium for More Features', 'wf_order_import_export'); ?></a>
8
+ </h2>
9
+
10
  <form action="<?php echo admin_url('admin.php?import=' . $this->import_page . '&step=2&merge=' . $merge); ?>" method="post" id="nomap">
11
  <?php wp_nonce_field('import-woocommerce'); ?>
12
  <input type="hidden" name="import_id" value="<?php echo $this->id; ?>" />
23
  jQuery(document).ready(function(){
24
  jQuery("form#nomap").submit();
25
  });
26
+ </script>
27
+ </div>
includes/views/export/html-wf-export-coupons.php CHANGED
@@ -1,4 +1,4 @@
1
- <div class="tool-box">
2
  <h3 class="title"><?php _e('Export Coupon in CSV Format:', 'wf_order_import_export'); ?></h3>
3
  <p><?php _e('Export and download your coupons in CSV format. This file can be used to import coupons back into your Woocommerce shop.', 'wf_order_import_export'); ?></p>
4
  <form action="<?php echo admin_url('admin.php?page=wf_coupon_csv_im_ex&action=export'); ?>" method="post">
@@ -8,4 +8,8 @@
8
  </table>
9
  <p class="submit"><input type="submit" class="button button-primary" value="<?php _e('Export Coupons', 'wf_order_import_export'); ?>" /></p>
10
  </form>
 
 
 
 
11
  </div>
1
+ <div class="tool-box bg-white p-20p">
2
  <h3 class="title"><?php _e('Export Coupon in CSV Format:', 'wf_order_import_export'); ?></h3>
3
  <p><?php _e('Export and download your coupons in CSV format. This file can be used to import coupons back into your Woocommerce shop.', 'wf_order_import_export'); ?></p>
4
  <form action="<?php echo admin_url('admin.php?page=wf_coupon_csv_im_ex&action=export'); ?>" method="post">
8
  </table>
9
  <p class="submit"><input type="submit" class="button button-primary" value="<?php _e('Export Coupons', 'wf_order_import_export'); ?>" /></p>
10
  </form>
11
+ </div>
12
+ </div>
13
+ <?php include(WT_OrdImpExpCsv_BASE . 'includes/views/market.php'); ?>
14
+ <div class="clearfix"></div>
15
  </div>
includes/views/export/html-wf-export-orders.php CHANGED
@@ -1,7 +1,11 @@
1
- <div class="tool-box">
2
  <h3 class="title"><?php _e('Export Orders in CSV Format:', 'wf_order_import_export'); ?></h3>
3
  <p><?php _e('Export and download your orders in CSV format. This file can be used to import orders back into your Woocommerce shop.', 'wf_order_import_export'); ?></p>
4
  <form action="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex&action=export'); ?>" method="post">
5
  <p class="submit"><input type="submit" class="button button-primary" value="<?php _e('Export Orders', 'wf_order_import_export'); ?>" /></p>
6
  </form>
 
 
 
 
7
  </div>
1
+ <div class="tool-box bg-white p-20p">
2
  <h3 class="title"><?php _e('Export Orders in CSV Format:', 'wf_order_import_export'); ?></h3>
3
  <p><?php _e('Export and download your orders in CSV format. This file can be used to import orders back into your Woocommerce shop.', 'wf_order_import_export'); ?></p>
4
  <form action="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex&action=export'); ?>" method="post">
5
  <p class="submit"><input type="submit" class="button button-primary" value="<?php _e('Export Orders', 'wf_order_import_export'); ?>" /></p>
6
  </form>
7
+ </div>
8
+ </div>
9
+ <?php include(WT_OrdImpExpCsv_BASE . 'includes/views/market.php'); ?>
10
+ <div class="clearfix"></div>
11
  </div>
includes/views/html-wf-admin-screen.php CHANGED
@@ -1,10 +1,10 @@
1
- <?php include('market.php'); ?>
2
- <div class="wrap woocommerce">
3
  <div class="icon32" id="icon-woocommerce-importer"><br></div>
4
  <h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
5
  <a href="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex') ?>" class="nav-tab <?php echo ($tab == 'import') ? 'nav-tab-active' : ''; ?>"><?php _e('Order Import / Export', 'wf_order_import_export'); ?></a>
6
  <a href="<?php echo admin_url('admin.php?page=wf_coupon_csv_im_ex&tab=coupon') ?>" class="nav-tab <?php echo ($tab == 'coupon') ? 'nav-tab-active' : ''; ?>"><?php _e('Coupon Import / Export', 'wf_order_import_export'); ?></a>
7
  <a href="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex&tab=subscription') ?>" class="nav-tab <?php echo ($tab == 'subscription') ? 'nav-tab-active' : ''; ?>"><?php _e('Subscription Import / Export', 'wf_order_import_export'); ?></a>
 
8
  </h2>
9
 
10
  <?php
1
+ <div class="woocommerce" style="margin: 10px 20px 0 2px;">
 
2
  <div class="icon32" id="icon-woocommerce-importer"><br></div>
3
  <h2 class="nav-tab-wrapper woo-nav-tab-wrapper">
4
  <a href="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex') ?>" class="nav-tab <?php echo ($tab == 'import') ? 'nav-tab-active' : ''; ?>"><?php _e('Order Import / Export', 'wf_order_import_export'); ?></a>
5
  <a href="<?php echo admin_url('admin.php?page=wf_coupon_csv_im_ex&tab=coupon') ?>" class="nav-tab <?php echo ($tab == 'coupon') ? 'nav-tab-active' : ''; ?>"><?php _e('Coupon Import / Export', 'wf_order_import_export'); ?></a>
6
  <a href="<?php echo admin_url('admin.php?page=wf_woocommerce_order_im_ex&tab=subscription') ?>" class="nav-tab <?php echo ($tab == 'subscription') ? 'nav-tab-active' : ''; ?>"><?php _e('Subscription Import / Export', 'wf_order_import_export'); ?></a>
7
+ <a href="https://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" class="nav-tab nav-tab-premium"><?php _e('Upgrade to Premium for More Features', 'wf_order_import_export'); ?></a>
8
  </h2>
9
 
10
  <?php
includes/views/html-wf-getting-started-subscription.php CHANGED
@@ -1,11 +1,19 @@
1
- <div id="message" class="updated woocommerce-message wc-connect">
2
- <div class="squeezer">
3
- <h4><?php _e('<strong>This Feature is only available in Premium version</strong>', 'wf_order_import_export'); ?></h4>
4
- <p class="submit">
5
- <a href="http://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" class="button button-primary"><?php _e('Upgrade to Premium Version', 'wf_order_import_export'); ?></a>
6
- <a href="http://orderimportexport.hikeforce.com/wp-admin/admin.php?page=wf_woocommerce_order_im_ex" target="_blank" class="button"><?php _e('Live Demo', 'wf_order_import_export'); ?></a>
7
- <a href="http://www.xadapter.com/2016/06/20/setting-up-order-import-export-plugin-for-woocommerce/" target="_blank" class="button"><?php _e('Documentation', 'wf_order_import_export'); ?></a>
8
- <a href="<?php echo plugins_url('Sample_Subscription.csv', WF_OrderImpExpCsv_FILE); ?>" target="_blank" class="button"><?php _e('Sample Subscription CSV', 'wf_order_import_export'); ?></a>
9
- </p>
 
 
 
 
 
 
10
  </div>
 
 
11
  </div>
1
+ <div class="orderimpexp-main-box">
2
+ <div class="orderimpexp-view" style="width:68%;">
3
+ <div class="tool-box bg-white p-20p">
4
+ <div id="message" class="updated woocommerce-message wc-connect">
5
+ <div class="squeezer">
6
+ <h4><?php _e('<strong>This Feature is only available in Premium version</strong>', 'wf_order_import_export'); ?></h4>
7
+ <p class="submit">
8
+ <a href="http://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" class="button button-primary"><?php _e('Upgrade to Premium Version', 'wf_order_import_export'); ?></a>
9
+ <a href="http://orderimportexport.hikeforce.com/wp-admin/admin.php?page=wf_woocommerce_order_im_ex" target="_blank" class="button"><?php _e('Live Demo', 'wf_order_import_export'); ?></a>
10
+ <a href="http://www.xadapter.com/2016/06/20/setting-up-order-import-export-plugin-for-woocommerce/" target="_blank" class="button"><?php _e('Documentation', 'wf_order_import_export'); ?></a>
11
+ <a href="<?php echo plugins_url('Sample_Subscription.csv', WF_OrderImpExpCsv_FILE); ?>" target="_blank" class="button"><?php _e('Sample Subscription CSV', 'wf_order_import_export'); ?></a>
12
+ </p>
13
+ </div>
14
+ </div>
15
+ </div>
16
  </div>
17
+ <?php include(WT_OrdImpExpCsv_BASE . 'includes/views/market.php'); ?>
18
+ <div class="clearfix"></div>
19
  </div>
includes/views/import/html-wf-import-coupons.php CHANGED
@@ -1,23 +1,24 @@
1
-
2
- <div class="tool-box">
3
- <h3 class="title"><?php _e('Import Coupons in CSV Format:', 'wf_order_import_export'); ?></h3>
4
- <p><?php _e('Import coupons in CSV format from different sources ( from your computer OR from another server via FTP )', 'wf_order_import_export'); ?></p>
5
- <p class="submit">
6
- <?php
7
- $merge_url = admin_url('admin.php?import=coupon_csv&merge=1');
8
- $import_url = admin_url('admin.php?import=coupon_csv');
9
- ?>
10
- <a class="button button-primary" id="mylink" href="<?php echo admin_url('admin.php?import=coupon_csv'); ?>"><?php _e('Import Coupons', 'wf_order_import_export'); ?></a>
11
- &nbsp;
12
- <input type="checkbox" id="merge" value="0"><?php _e('Merge coupons if exists', 'wf_order_import_export'); ?> <br>
13
- </p>
14
- </div>
15
- <script type="text/javascript">
16
- jQuery('#merge').click(function () {
17
- if (this.checked) {
18
- jQuery("#mylink").attr("href", '<?php echo $merge_url ?>');
19
- } else {
20
- jQuery("#mylink").attr("href", '<?php echo $import_url ?>');
21
- }
22
- });
23
- </script>
 
1
+ <div class="orderimpexp-main-box">
2
+ <div class="orderimpexp-view" style="width:68%;">
3
+ <div class="tool-box bg-white p-20p" style="margin-bottom: 20px;">
4
+ <h3 class="title"><?php _e('Import Coupons in CSV Format:', 'wf_order_import_export'); ?></h3>
5
+ <p><?php _e('Import coupons in CSV format from different sources ( from your computer OR from another server via FTP )', 'wf_order_import_export'); ?></p>
6
+ <p class="submit">
7
+ <?php
8
+ $merge_url = admin_url('admin.php?import=coupon_csv&merge=1');
9
+ $import_url = admin_url('admin.php?import=coupon_csv');
10
+ ?>
11
+ <a class="button button-primary" id="mylink" href="<?php echo admin_url('admin.php?import=coupon_csv'); ?>"><?php _e('Import Coupons', 'wf_order_import_export'); ?></a>
12
+ &nbsp;
13
+ <input type="checkbox" id="merge" value="0"><?php _e('Update coupons if exists', 'wf_order_import_export'); ?> <br>
14
+ </p>
15
+ </div>
16
+ <script type="text/javascript">
17
+ jQuery('#merge').click(function () {
18
+ if (this.checked) {
19
+ jQuery("#mylink").attr("href", '<?php echo $merge_url ?>');
20
+ } else {
21
+ jQuery("#mylink").attr("href", '<?php echo $import_url ?>');
22
+ }
23
+ });
24
+ </script>
includes/views/import/html-wf-import-orders.php CHANGED
@@ -1,23 +1,24 @@
1
-
2
- <div class="tool-box">
3
- <h3 class="title"><?php _e('Import Orders in CSV Format:', 'wf_order_import_export'); ?></h3>
4
- <p><?php _e('Import Orders in CSV format from different sources ( from your computer OR from another server via FTP )', 'wf_order_import_export'); ?></p>
5
- <p class="submit">
6
- <?php
7
- $merge_url = admin_url('admin.php?import=woocommerce_wf_order_csv&merge=1');
8
- $import_url = admin_url('admin.php?import=woocommerce_wf_order_csv');
9
- ?>
10
- <a class="button button-primary" id="mylink" href="<?php echo admin_url('admin.php?import=woocommerce_wf_order_csv'); ?>"><?php _e('Import Orders', 'wf_order_import_export'); ?></a>
11
- &nbsp;
12
- <input type="checkbox" id="merge" value="0"><?php _e('Merge order if exists', 'wf_order_import_export'); ?> <br>
13
- </p>
14
- </div>
15
- <script type="text/javascript">
16
- jQuery('#merge').click(function () {
17
- if (this.checked) {
18
- jQuery("#mylink").attr("href", '<?php echo $merge_url ?>');
19
- } else {
20
- jQuery("#mylink").attr("href", '<?php echo $import_url ?>');
21
- }
22
- });
23
- </script>
 
1
+ <div class="orderimpexp-main-box">
2
+ <div class="orderimpexp-view" style="width:68%;">
3
+ <div class="tool-box bg-white p-20p" style="margin-bottom: 20px;">
4
+ <h3 class="title"><?php _e('Import Orders in CSV Format:', 'wf_order_import_export'); ?></h3>
5
+ <p><?php _e('Import Orders in CSV format from different sources ( from your computer OR from another server via FTP )', 'wf_order_import_export'); ?></p>
6
+ <p class="submit">
7
+ <?php
8
+ $merge_url = admin_url('admin.php?import=woocommerce_wf_order_csv&merge=1');
9
+ $import_url = admin_url('admin.php?import=woocommerce_wf_order_csv');
10
+ ?>
11
+ <a class="button button-primary" id="mylink" href="<?php echo admin_url('admin.php?import=woocommerce_wf_order_csv'); ?>"><?php _e('Import Orders', 'wf_order_import_export'); ?></a>
12
+ &nbsp;
13
+ <input type="checkbox" id="merge" value="0"><?php _e('Update order if exists', 'wf_order_import_export'); ?> <br>
14
+ </p>
15
+ </div>
16
+ <script type="text/javascript">
17
+ jQuery('#merge').click(function () {
18
+ if (this.checked) {
19
+ jQuery("#mylink").attr("href", '<?php echo $merge_url ?>');
20
+ } else {
21
+ jQuery("#mylink").attr("href", '<?php echo $import_url ?>');
22
+ }
23
+ });
24
+ </script>
includes/views/market.php CHANGED
@@ -1,97 +1,61 @@
1
- <style>
2
- .box14{
3
- width: 30%;
4
- margin-top:15px;
5
- min-height: 310px;
6
- margin-right: 10px;
7
- padding:10px;
8
- position:absolute;
9
- z-index:1;
10
- right:0px;
11
- float:right;
12
- background: -webkit-gradient(linear, 0% 20%, 0% 92%, from(#fff), to(#f3f3f3), color-stop(.1,#fff));
13
- border: 1px solid #ccc;
14
- -webkit-border-radius: 60px 5px;
15
- -webkit-box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.1) inset;
16
- }
17
- .box14_ribbon{
18
- position:absolute;
19
- top:0; right: 0;
20
- width: 130px;
21
- height: 40px;
22
- background: -webkit-gradient(linear, 555% 20%, 0% 92%, from(rgba(0, 0, 0, 0.1)), to(rgba(0, 0, 0, 0.0)), color-stop(.1,rgba(0, 0, 0, 0.2)));
23
- border-left: 1px dashed rgba(0, 0, 0, 0.1);
24
- border-right: 1px dashed rgba(0, 0, 0, 0.1);
25
- -webkit-box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.2);
26
- -webkit-transform: rotate(6deg) skew(0,0) translate(-60%,-5px);
27
- }
28
- .box14 h3
29
- {
30
- text-align:center;
31
- margin:2px;
32
- }
33
- .box14 p
34
- {
35
- text-align:center;
36
- margin:2px;
37
- border-width:1px;
38
- border-style:solid;
39
- padding:5px;
40
- border-color: rgb(204, 204, 204);
41
- }
42
- .box14 span
43
- {
44
- background:#fff;
45
- padding:5px;
46
- display:block;
47
- box-shadow:green 0px 3px inset;
48
- margin-top:10px;
49
- }
50
- .box14 img {
51
- width: 40%;
52
- padding-left:30%;
53
- margin-top: 5px;
54
- }
55
- .table-box-main {
56
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
57
- transition: all 0.3s cubic-bezier(.25,.8,.25,1);
58
- }
59
 
60
- .table-box-main:hover {
61
- box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
62
- }
63
- </style>
64
- <div class="box14 table-box-main">
65
- <h3>
66
- <center><a href="https://www.xadapter.com/" target="_blank" style="text-decoration: none;color:black;" >XAdapter</a></center></h3>
67
- <hr>
68
- <img src= <?php echo plugins_url()."/order-import-export-for-woocommerce/images/Order-Import-Export-for-WooCommerce-Image.png"; ?>>
69
- <h3>Order/Coupon/Subscriptions CSV/XML Import Export Plugin For WooCommerce<br/></h3>
70
- <!-- <p style="color:red;">
71
- <strong>Your Business is precious. Go Premium!</strong>
72
- </p> -->
73
- <br/>
74
- <center> <a href="http://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" class="button button-primary"><?php _e('Upgrade to Premium Version', 'wf_order_import_export'); ?></a></center>
75
- <span>
76
- <ul>
77
- <li>- Import and Export Subscriptions along with Order and Coupon.</li>
78
- <li>- Filtering options while Export using Order Status, Date, Coupon Type etc.</li>
79
- <li>- Change values while import using Evaluation Field feature.</li>
80
- <li>- A number of third party plugins supported.</li>
81
- <li>- Column Mapping Feature to Import from any CSV format ( Magento, Shopify, OpenCart etc. ).</li>
82
- <li>- Import and Export via FTP.</li>
83
- <li>- Schedule automatic import and export using Cron Job Feature.</li>
84
- <li>- XML Export/Import supports Stamps.com desktop application, UPS WorldShip, Endicia and FedEx.</li>
85
- <li>- Excellent Support for setting it up!</li>
86
- </ul>
87
- </ul>
88
- </span>
89
-
90
- <center>
91
-
92
-
93
- <a href="http://orderimportexport.hikeforce.com/wp-admin/admin.php?page=wf_woocommerce_order_im_ex" target="_blank" class="button"><?php _e('Live Demo', 'wf_order_import_export'); ?></a>
94
- <a href="https://www.xadapter.com/setting-up-order-import-export-plugin-for-woocommerce/" target="_blank" class="button"><?php _e('Documentation', 'wf_order_import_export'); ?></a>
95
- <a href="<?php echo plugins_url('Sample_Order.csv', WF_OrderImpExpCsv_FILE); ?>" target="_blank" class="button"><?php _e('Sample Order CSV', 'wf_order_import_export'); ?></a>
96
- <a href="<?php echo plugins_url('Sample_Coupon.csv', WF_OrderImpExpCsv_FILE); ?>" target="_blank" class="button"><?php _e('Sample Coupon CSV', 'wf_order_import_export'); ?></a></center>
97
  </div>
 
 
 
 
 
 
 
1
+ <?php
2
+ if (!defined('ABSPATH')) {
3
+ exit;
4
+ }
5
+ ?>
6
+ <div class="market-box table-box-main">
7
+ <div class="orderimpexp-premium-features">
8
+ <center><a href="https://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" class="button button-primary button-go-pro"><?php _e('Upgrade to Premium Version', 'wf_csv_import_export'); ?></a></center>
9
+ <span>
10
+ <ul>
11
+ <li><?php _e('Import and Export Subscriptions along with Order and Coupon.', 'wf_order_import_export'); ?></li>
12
+ <li><?php _e('Filtering options while Export using Order Status, Date, Coupon Type etc.', 'wf_order_import_export'); ?></li>
13
+ <li><?php _e('Change values while import using Evaluation Field feature.', 'wf_order_import_export'); ?></li>
14
+ <li><?php _e('A number of third party plugins supported.', 'wf_order_import_export'); ?> </li>
15
+ <li><?php _e('Column Mapping Feature to Import from any CSV format ( Magento, Shopify, OpenCart etc. ).', 'wf_order_import_export'); ?></li>
16
+ <li><?php _e('Import and Export via FTP.', 'wf_order_import_export'); ?></li>
17
+ <li><?php _e('Choice to update or skip existing orderswhile importing.', 'wf_order_import_export'); ?></li>
18
+ <li><?php _e('WPML supported. French and German support out of the box.', 'wf_order_import_export'); ?></li>
19
+ </ul>
20
+ </span>
21
+ <div id="show_more" style="display: none">
22
+ <span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
+ <ul>
25
+ <li><?php _e('Schedule automatic import and export using Cron Job Feature.', 'wf_order_import_export'); ?></li>
26
+ <li><?php _e('Automatic scheduled import and export.', 'wf_order_import_export'); ?></li>
27
+ <li><?php _e('XML Export/Import supports Stamps.com desktop application, UPS WorldShip, Endicia and FedEx.', 'wf_order_import_export'); ?></li>
28
+ <li><?php _e('30 Days Money Back Guarantee.', 'wf_order_import_export'); ?></li>
29
+ <li><?php _e('More frequent plugin updates.', 'wf_order_import_export'); ?></li>
30
+ <li><?php _e('Excellent Support for setting it up!', 'wf_order_import_export'); ?></li>
31
+ </ul>
32
+
33
+ </span>
34
+ <center>
35
+ <a href="http://orderimportexport.hikeforce.com/wp-admin/admin.php?page=wf_woocommerce_order_im_ex" target="_blank" class="button button-doc-demo"><?php _e('Live Demo', 'wf_order_import_export'); ?></a>
36
+ <a href="https://www.xadapter.com/setting-up-order-import-export-plugin-for-woocommerce/" target="_blank" class="button button-doc-demo"><?php _e('Documentation', 'wf_order_import_export'); ?></a>
37
+ </center>
38
+ <center>
39
+ <a href="<?php echo plugins_url('Sample_Order.csv', WF_OrderImpExpCsv_FILE); ?>" target="_blank" class="button button-doc-demo"><?php _e('Sample Order CSV', 'wf_order_import_export'); ?></a>
40
+ <a href="<?php echo plugins_url('Sample_Coupon.csv', WF_OrderImpExpCsv_FILE); ?>" target="_blank" class="button button-doc-demo"><?php _e('Sample Coupon CSV', 'wf_order_import_export'); ?></a>
41
+ </center>
42
+ </div>
43
+ <div class="button-show-more">
44
+ <button class="button" onclick="showMoreFeatures()" id="showMoreButton" >Show more
45
+ <i class="dashicons dashicons-arrow-down-alt2"></i>
46
+ </button>
47
+ </div>
48
+ </div>
49
+ <div class="orderimpexp-review-widget">
50
+ <?php
51
+ echo sprintf(__('<div class=""><p><i>If you like the plugin please leave us a %1$s review!</i><p></div>', 'wf_csv_import_export'), '<a href="https://wordpress.org/support/plugin/order-import-export-for-woocommerce/reviews?rate=5#new-post" target="_blank" class="xa-orderimpexp-rating-link" data-reviewed="' . esc_attr__('Thanks for the review.', 'wf_csv_import_export') . '">&#9733;&#9733;&#9733;&#9733;&#9733;</a>');
52
+ ?>
53
+ </div>
 
 
 
 
 
 
 
54
  </div>
55
+ <script>
56
+ function showMoreFeatures() {
57
+ var moreFeatures = document.getElementById("show_more");
58
+ moreFeatures.style.display = "block";
59
+ document.getElementById("showMoreButton").style.display = "none";
60
+ }
61
+ </script>
order-import-export.php CHANGED
@@ -6,7 +6,7 @@ Plugin URI: https://www.xadapter.com/product/order-import-export-plugin-for-wooc
6
  Description: Export and Import Order detail including line items, From and To your WooCommerce Store.
7
  Author: XAdapter
8
  Author URI: https://www.xadapter.com/
9
- Version: 1.2.8
10
  Text Domain: wf_order_import_export
11
  WC tested up to: 3.3.3
12
  */
@@ -21,6 +21,10 @@ define( "WF_WOOCOMMERCE_ORDER_IM_EX", "wf_woocommerce_order_im_ex" );
21
  define("WF_CPN_IMP_EXP_ID", "wf_cpn_imp_exp");
22
  define("wf_coupon_csv_im_ex", "wf_coupon_csv_im_ex");
23
 
 
 
 
 
24
  /**
25
  * Check if WooCommerce is active
26
  */
@@ -39,6 +43,10 @@ if (in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', ge
39
  public function __construct() {
40
 
41
  define( 'WF_OrderImpExpCsv_FILE', __FILE__ );
 
 
 
 
42
 
43
  add_filter( 'woocommerce_screen_ids', array( $this, 'woocommerce_screen_ids' ) );
44
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'wf_plugin_action_links' ) );
@@ -53,6 +61,9 @@ if (in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', ge
53
  if ( defined('DOING_AJAX') ) {
54
  include_once( 'includes/class-wf-orderimpexpcsv-ajax-handler.php' );
55
  }
 
 
 
56
  }
57
 
58
  public function wf_plugin_action_links( $links ) {
@@ -61,6 +72,9 @@ if (in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', ge
61
  '<a href="https://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" style="color:#3db634;">' . __( 'Premium Upgrade', 'wf_order_import_export' ) . '</a>',
62
  '<a href="https://wordpress.org/support/plugin/order-import-export-for-woocommerce">' . __( 'Support', 'wf_order_import_export' ) . '</a>',
63
  );
 
 
 
64
  return array_merge( $plugin_links, $links );
65
  }
66
 
@@ -265,5 +279,4 @@ if (in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', ge
265
 
266
  new WF_Coupon_Import_Export_CSV();
267
 
268
-
269
  }
6
  Description: Export and Import Order detail including line items, From and To your WooCommerce Store.
7
  Author: XAdapter
8
  Author URI: https://www.xadapter.com/
9
+ Version: 1.2.9
10
  Text Domain: wf_order_import_export
11
  WC tested up to: 3.3.3
12
  */
21
  define("WF_CPN_IMP_EXP_ID", "wf_cpn_imp_exp");
22
  define("wf_coupon_csv_im_ex", "wf_coupon_csv_im_ex");
23
 
24
+ if (!defined('WF_ORDERIMPEXP_CURRENT_VERSION')) {
25
+ define("WF_ORDERIMPEXP_CURRENT_VERSION", "1.2.9");
26
+ }
27
+
28
  /**
29
  * Check if WooCommerce is active
30
  */
43
  public function __construct() {
44
 
45
  define( 'WF_OrderImpExpCsv_FILE', __FILE__ );
46
+
47
+ if (!defined('WT_OrdImpExpCsv_BASE')) {
48
+ define('WT_OrdImpExpCsv_BASE', plugin_dir_path(__FILE__));
49
+ }
50
 
51
  add_filter( 'woocommerce_screen_ids', array( $this, 'woocommerce_screen_ids' ) );
52
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'wf_plugin_action_links' ) );
61
  if ( defined('DOING_AJAX') ) {
62
  include_once( 'includes/class-wf-orderimpexpcsv-ajax-handler.php' );
63
  }
64
+
65
+ // uninstall feedback catch
66
+ include_once 'includes/class-wf-orderimpexp-plugin-uninstall-feedback.php';
67
  }
68
 
69
  public function wf_plugin_action_links( $links ) {
72
  '<a href="https://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" style="color:#3db634;">' . __( 'Premium Upgrade', 'wf_order_import_export' ) . '</a>',
73
  '<a href="https://wordpress.org/support/plugin/order-import-export-for-woocommerce">' . __( 'Support', 'wf_order_import_export' ) . '</a>',
74
  );
75
+ if (array_key_exists('deactivate', $links)) {
76
+ $links['deactivate'] = str_replace('<a', '<a class="wforderimpexp-deactivate-link"', $links['deactivate']);
77
+ }
78
  return array_merge( $plugin_links, $links );
79
  }
80
 
279
 
280
  new WF_Coupon_Import_Export_CSV();
281
 
 
282
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: order, coupon, subscription, export, import, woocommerce
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
- Stable tag: 1.2.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -75,6 +75,10 @@ Yes. You can import or export order line item details.
75
  3. Exported sample order Screen
76
 
77
  == Changelog ==
 
 
 
 
78
  = 1.2.8 =
79
  * WC 3.3.3 Tested OK
80
  * Keeping Order ID in order import
@@ -137,6 +141,6 @@ Yes. You can import or export order line item details.
137
  * Export /Import WooCommerce Orders.
138
 
139
  == Upgrade Notice ==
140
- = 1.2.8 =
141
- * WC 3.3.3 Tested OK
142
- * Keeping Order ID in order import
4
  Tags: order, coupon, subscription, export, import, woocommerce
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
+ Stable tag: 1.2.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
75
  3. Exported sample order Screen
76
 
77
  == Changelog ==
78
+
79
+ = 1.2.9 =
80
+ * Improved UI
81
+ * Uninstall feedback
82
  = 1.2.8 =
83
  * WC 3.3.3 Tested OK
84
  * Keeping Order ID in order import
141
  * Export /Import WooCommerce Orders.
142
 
143
  == Upgrade Notice ==
144
+ = 1.2.9 =
145
+ * Improved UI
146
+ * Uninstall feedback
styles/wf-style.css CHANGED
@@ -122,4 +122,146 @@
122
  text-transform: none;
123
  top: 0;
124
  width: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  }
122
  text-transform: none;
123
  top: 0;
124
  width: 100%;
125
+ }
126
+
127
+
128
+
129
+
130
+
131
+
132
+ .clearfix{
133
+ clear: both;
134
+ }
135
+ .nav-tab-wrapper .nav-tab-premium {
136
+ background: #5ccc96;
137
+ color: white;
138
+ border-color: #5ccc96;
139
+ }
140
+ .orderimpexp-main-box{
141
+ width: 100%;
142
+ }
143
+ .orderimpexp-main-box input {
144
+ box-shadow: none;
145
+ padding: 7px 10px;
146
+ }
147
+ .orderimpexp-view{
148
+ width:65%;
149
+ float: left;
150
+ }
151
+ .market-box{
152
+ width:30%;
153
+ float: right;
154
+ }
155
+ .bg-white {
156
+ background: #fff;
157
+ }
158
+ .p-20p {
159
+ padding: 20px;
160
+ }
161
+ .getting-started-video{
162
+ background: #fff;
163
+ padding: 5px;
164
+ margin-bottom: 23px;
165
+ }
166
+ .getting-started-video h2{
167
+ text-align: center;
168
+ padding: 5px;
169
+ }
170
+
171
+ .getting-started-video iframe{
172
+ margin:5px auto 25px auto;
173
+ display: block;
174
+ }
175
+ .orderimpexp-premium-features{
176
+ background: #fff;
177
+ padding:5px;
178
+ }
179
+ .orderimpexp-premium-features ul {
180
+ padding-left: 20px;
181
+ padding-right: 20px;
182
+ }
183
+ .orderimpexp-premium-features li {
184
+ margin-bottom: 15px;
185
+ padding-left: 15px;
186
+ }
187
+ .orderimpexp-premium-features li:before
188
+ {
189
+ font-family: dashicons;
190
+ text-decoration: inherit;
191
+ font-weight: 400;
192
+ font-style: normal;
193
+ vertical-align: top;
194
+ text-align: center;
195
+ content: "\f147";
196
+ margin-right: 10px;
197
+ margin-left: -25px;
198
+ font-size: 16px;
199
+ color: #3085bb;
200
+ }
201
+ .orderimpexp-premium-features .button {
202
+ margin-bottom: 20px;
203
+ }
204
+ .orderimpexp-premium-features .button-go-pro {
205
+ box-shadow: none;
206
+ border: 0;
207
+ text-shadow: none;
208
+ padding: 10px 15px;
209
+ height: auto;
210
+ font-size: 18px;
211
+ border-radius: 4px;
212
+ font-weight: 600;
213
+ background: #00cb95;
214
+ margin-top: 20px;
215
+ }
216
+ .orderimpexp-premium-features .button-go-pro:hover,
217
+ .orderimpexp-premium-features .button-go-pro:focus,
218
+ .orderimpexp-premium-features .button-go-pro:active {
219
+ background: #00a378;
220
+ }
221
+ .orderimpexp-premium-features .button-doc-demo {
222
+ border: 0;
223
+ background: #d8d8dc;
224
+ box-shadow: none;
225
+ padding: 10px 15px;
226
+ font-size: 15px;
227
+ height: auto;
228
+ margin-left: 10px;
229
+ margin-right: 10px;
230
+ margin-top: 10px;
231
+ }
232
+ .orderimpexp-premium-features .button-doc-demo:hover,
233
+ .orderimpexp-premium-features .button-doc-demo:focus,
234
+ .orderimpexp-premium-features .button-doc-demo:active {
235
+ background: #dfdfe4;
236
+ }
237
+ .xa-orderimpexp-rating-link{color:#ffc600;}
238
+
239
+ .orderimpexp-review-widget{
240
+ background: #fff;
241
+ padding: 5px;
242
+ margin-top: 23px;
243
+ }
244
+ .orderimpexp-review-widget p{
245
+ margin-right:5px;
246
+ margin-left:5px;
247
+ }
248
+ .button-show-more {
249
+ text-align: center;
250
+ }
251
+ .button-show-more .button,
252
+ .button-show-more .button:hover,
253
+ .button-show-more .button:focus{
254
+ box-shadow: none;
255
+ border: 0;
256
+ height: auto;
257
+ line-height: 1;
258
+ color: #4e71a5;
259
+ text-shadow: none;
260
+ font-weight: 500;
261
+ background: transparent;
262
+ }
263
+
264
+ .button-show-more .button .dashicons {
265
+ font-size: 12px;
266
+ line-height: 1.5;
267
  }