Order Export & Order Import for WooCommerce - Version 2.1.0

Version Description

  • Fix:- WC compatibility with shipping phone number
Download this release

Release Info

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

Code changes from version 2.0.9 to 2.1.0

Files changed (38) hide show
  1. admin/classes/class-csvreader.php +0 -0
  2. admin/css/select2.css +0 -0
  3. admin/css/wt-import-export-for-woo-admin.css +0 -0
  4. admin/index.php +0 -0
  5. admin/js/dropzone.min.js +0 -0
  6. admin/js/select2.js +0 -0
  7. admin/js/wt-import-export-for-woo-admin.js +0 -0
  8. admin/modules/coupon/data/data-coupon-post-columns.php +34 -34
  9. admin/modules/coupon/data/data/data-wf-reserved-fields-pair.php +26 -26
  10. admin/modules/import/assets/js/main.js +0 -0
  11. admin/modules/import/classes/class-import-ajax.php +0 -0
  12. admin/modules/import/import.php +0 -0
  13. admin/modules/import/views/_import_method_import_page.php +0 -0
  14. admin/modules/order/data/data-order-post-columns.php +73 -73
  15. admin/modules/order/data/data-wf-post-columns-coupon.php +34 -34
  16. admin/modules/order/data/data-wf-post-subscription-columns.php +87 -87
  17. admin/modules/order/data/data-wf-xml-default-meta.php +45 -45
  18. admin/modules/order/data/data/data-wf-reserved-fields-pair.php +74 -74
  19. admin/modules/order/export/export.php +1 -1
  20. admin/modules/order/import/import.php +0 -0
  21. admin/partials/wt-import-export-for-woo-admin-display.php +0 -0
  22. includes/class-wt-import-export-for-woo-activator.php +0 -0
  23. includes/class-wt-import-export-for-woo-deactivator.php +0 -0
  24. includes/class-wt-import-export-for-woo-i18n.php +0 -0
  25. includes/class-wt-import-export-for-woo-loader.php +0 -0
  26. includes/class-wt-import-export-for-woo.php +1 -1
  27. includes/index.php +0 -0
  28. index.php +0 -0
  29. languages/wt-import-export-for-woo.pot +0 -0
  30. license.txt +0 -0
  31. order-import-export-for-woocommerce.php +2 -2
  32. public/class-wt-import-export-for-woo-public.php +0 -0
  33. public/css/wt-import-export-for-woo-public.css +0 -0
  34. public/index.php +0 -0
  35. public/js/wt-import-export-for-woo-public.js +0 -0
  36. public/partials/wt-import-export-for-woo-public-display.php +0 -0
  37. readme.txt +5 -6
  38. uninstall.php +0 -0
admin/classes/class-csvreader.php CHANGED
File without changes
admin/css/select2.css CHANGED
File without changes
admin/css/wt-import-export-for-woo-admin.css CHANGED
File without changes
admin/index.php CHANGED
File without changes
admin/js/dropzone.min.js CHANGED
File without changes
admin/js/select2.js CHANGED
File without changes
admin/js/wt-import-export-for-woo-admin.js CHANGED
File without changes
admin/modules/coupon/data/data-coupon-post-columns.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) {
3
- exit;
4
- }
5
-
6
- return apply_filters('coupon_csv_coupon_post_columns', array(
7
- 'ID' => 'ID',
8
- 'post_title' => 'Coupon code',
9
- 'post_excerpt' => 'Description',
10
- 'post_status' => 'Status',
11
- 'post_date' => 'Post date',
12
- 'post_author' => 'Post author',
13
-
14
- // // Meta
15
- 'discount_type' => 'Discount type',
16
- 'coupon_amount' => 'Coupon amount',
17
- 'individual_use' => 'Individual use only',
18
- 'product_ids' => 'Product IDs',
19
- 'product_SKUs' => 'Product SKUs',
20
- 'exclude_product_ids' => 'Exclude product IIDs',
21
- 'exclude_product_SKUs' => 'Exclude product SKUs',
22
- 'usage_count' => 'No of times used',
23
- 'usage_limit' => 'Usage limit per coupon',
24
- 'usage_limit_per_user' => 'Usage limit per user',
25
- 'limit_usage_to_x_items' => 'Limit usage to X items',
26
- 'date_expires' => 'Expiry date',
27
- 'free_shipping' => 'Allow free shipping',
28
- 'exclude_sale_items' => 'Exclude sale items',
29
- 'product_categories' => 'Product categories',
30
- 'exclude_product_categories' => 'Exclude categories',
31
- 'minimum_amount' => 'Minimum amount',
32
- 'maximum_amount' => 'Maximum amount',
33
- 'customer_email' => 'Allowed emails',
34
- ) );
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+
6
+ return apply_filters('coupon_csv_coupon_post_columns', array(
7
+ 'ID' => 'ID',
8
+ 'post_title' => 'Coupon code',
9
+ 'post_excerpt' => 'Description',
10
+ 'post_status' => 'Status',
11
+ 'post_date' => 'Post date',
12
+ 'post_author' => 'Post author',
13
+
14
+ // // Meta
15
+ 'discount_type' => 'Discount type',
16
+ 'coupon_amount' => 'Coupon amount',
17
+ 'individual_use' => 'Individual use only',
18
+ 'product_ids' => 'Product IDs',
19
+ 'product_SKUs' => 'Product SKUs',
20
+ 'exclude_product_ids' => 'Exclude product IIDs',
21
+ 'exclude_product_SKUs' => 'Exclude product SKUs',
22
+ 'usage_count' => 'No of times used',
23
+ 'usage_limit' => 'Usage limit per coupon',
24
+ 'usage_limit_per_user' => 'Usage limit per user',
25
+ 'limit_usage_to_x_items' => 'Limit usage to X items',
26
+ 'date_expires' => 'Expiry date',
27
+ 'free_shipping' => 'Allow free shipping',
28
+ 'exclude_sale_items' => 'Exclude sale items',
29
+ 'product_categories' => 'Product categories',
30
+ 'exclude_product_categories' => 'Exclude categories',
31
+ 'minimum_amount' => 'Minimum amount',
32
+ 'maximum_amount' => 'Maximum amount',
33
+ 'customer_email' => 'Allowed emails',
34
+ ) );
admin/modules/coupon/data/data/data-wf-reserved-fields-pair.php CHANGED
@@ -1,27 +1,27 @@
1
- <?php
2
-
3
- // Reserved column names
4
- return apply_filters('woocommerce_csv_product_import_reserved_fields_pair',array(
5
- 'ID' => array('title'=>'ID','description'=>'Coupon ID'),
6
- 'post_title' => array('title'=>'Coupon code','description'=>'Name of the coupon '),
7
- 'post_excerpt' => array('title'=>'Description','description'=>'Short description about the Coupon'),
8
- 'post_status' => array('title'=>'Status','description'=>'Coupon Status ( published , draft ...)'),
9
- 'post_date' => array('title'=>'Post date','description'=>'Coupon posted date', 'type' => 'date'),
10
- 'discount_type' => array('title'=>'Discount type','description'=>'fixed_cart OR percent OR fixed_product OR percent_product'),
11
- 'coupon_amount' => array('title'=>'Coupon amount','description'=>'Numeric values'),
12
- 'individual_use' => array('title'=>'Individual use only','description'=>'yes or no'),
13
- 'product_ids' => array('title'=>'Products','description'=>'With comma(,) Separator'),
14
- 'exclude_product_ids' => array('title'=>'Exclude products','description'=>'With comma(,) Separator'),
15
- 'usage_count' => array('title'=>'No of times used','description'=>'Numeric Values'),
16
- 'usage_limit' => array('title'=>'Usage limit per coupon','description'=>'Numeric Values'),
17
- 'usage_limit_per_user' => array('title'=>'Usage limit per user','description'=>'Numeric Values'),
18
- 'limit_usage_to_x_items' => array('title'=>'Limit usage to X items','description'=>'Maximum Number Of Individual Items This Coupon Can Apply'),
19
- 'date_expires' => array('title'=>'Expiry date','description'=>'YYYY-MM-DD', 'type' => 'date'),
20
- 'free_shipping' => array('title'=>'Allow free shipping','description'=>'yes or no'),
21
- 'exclude_sale_items' => array('title'=>'Exclude sale items','description'=>'yes or no'),
22
- 'product_categories' => array('title'=>'Product categories','description'=>'with comma(,) Separator'),
23
- 'exclude_product_categories' => array('title'=>'Exclude categories','description'=>'With comma(,) Separator'),
24
- 'minimum_amount' => array('title'=>'Minimum amount','description'=>'Numeric'),
25
- 'maximum_amount' => array('title'=>'Maximum amount','description'=>'Numeric'),
26
- 'customer_email' => array('title'=>'Allowed emails','description'=>'With comma(,) Separator'),
27
  ));
1
+ <?php
2
+
3
+ // Reserved column names
4
+ return apply_filters('woocommerce_csv_product_import_reserved_fields_pair',array(
5
+ 'ID' => array('title'=>'ID','description'=>'Coupon ID'),
6
+ 'post_title' => array('title'=>'Coupon code','description'=>'Name of the coupon '),
7
+ 'post_excerpt' => array('title'=>'Description','description'=>'Short description about the Coupon'),
8
+ 'post_status' => array('title'=>'Status','description'=>'Coupon Status ( published , draft ...)'),
9
+ 'post_date' => array('title'=>'Post date','description'=>'Coupon posted date', 'type' => 'date'),
10
+ 'discount_type' => array('title'=>'Discount type','description'=>'fixed_cart OR percent OR fixed_product OR percent_product'),
11
+ 'coupon_amount' => array('title'=>'Coupon amount','description'=>'Numeric values'),
12
+ 'individual_use' => array('title'=>'Individual use only','description'=>'yes or no'),
13
+ 'product_ids' => array('title'=>'Products','description'=>'With comma(,) Separator'),
14
+ 'exclude_product_ids' => array('title'=>'Exclude products','description'=>'With comma(,) Separator'),
15
+ 'usage_count' => array('title'=>'No of times used','description'=>'Numeric Values'),
16
+ 'usage_limit' => array('title'=>'Usage limit per coupon','description'=>'Numeric Values'),
17
+ 'usage_limit_per_user' => array('title'=>'Usage limit per user','description'=>'Numeric Values'),
18
+ 'limit_usage_to_x_items' => array('title'=>'Limit usage to X items','description'=>'Maximum Number Of Individual Items This Coupon Can Apply'),
19
+ 'date_expires' => array('title'=>'Expiry date','description'=>'YYYY-MM-DD', 'type' => 'date'),
20
+ 'free_shipping' => array('title'=>'Allow free shipping','description'=>'yes or no'),
21
+ 'exclude_sale_items' => array('title'=>'Exclude sale items','description'=>'yes or no'),
22
+ 'product_categories' => array('title'=>'Product categories','description'=>'with comma(,) Separator'),
23
+ 'exclude_product_categories' => array('title'=>'Exclude categories','description'=>'With comma(,) Separator'),
24
+ 'minimum_amount' => array('title'=>'Minimum amount','description'=>'Numeric'),
25
+ 'maximum_amount' => array('title'=>'Maximum amount','description'=>'Numeric'),
26
+ 'customer_email' => array('title'=>'Allowed emails','description'=>'With comma(,) Separator'),
27
  ));
admin/modules/import/assets/js/main.js CHANGED
File without changes
admin/modules/import/classes/class-import-ajax.php CHANGED
File without changes
admin/modules/import/import.php CHANGED
File without changes
admin/modules/import/views/_import_method_import_page.php CHANGED
File without changes
admin/modules/order/data/data-order-post-columns.php CHANGED
@@ -1,73 +1,73 @@
1
- <?php
2
-
3
- if (!defined('ABSPATH')) {
4
- exit;
5
- }
6
-
7
- $base_columns = array(
8
- 'order_id' => 'ID',
9
- 'order_number' => 'Order number',
10
- 'order_date' => 'Order date',
11
- 'paid_date' => 'Paid date',
12
- 'status' => 'Status',
13
- 'shipping_total' => 'Shipping total',
14
- 'shipping_tax_total' => 'Shipping tax total',
15
- 'fee_total' => 'Fee total',
16
- 'fee_tax_total' => 'Fee tax total',
17
- 'tax_total' => 'Tax total',
18
- 'cart_discount' => 'Cart discount',
19
- 'order_discount' => 'Order discount',
20
- 'discount_total' => 'Discount total',
21
- 'order_total' => 'Order total',
22
- //'refunded_total' => 'refunded_total',
23
- 'order_currency' => 'Order currency',
24
- 'payment_method' => 'Payment method',
25
- 'payment_method_title' => 'Payment method title',
26
- 'transaction_id' => 'Transaction ID',
27
- 'customer_ip_address' => 'Customer IP address',
28
- 'customer_user_agent' => 'Customer user agent',
29
- 'shipping_method' => 'Shipping method',
30
- 'customer_id' => 'Customer ID',
31
- 'customer_user' => 'Customer user',
32
- 'customer_email' => 'Customer email',
33
- 'billing_first_name' => 'Billing first name',
34
- 'billing_last_name' => 'Billing last name',
35
- 'billing_company' => 'Billing company',
36
- 'billing_email' => 'Billing email',
37
- 'billing_phone' => 'Billing phone',
38
- 'billing_address_1' => 'Billing address 1',
39
- 'billing_address_2' => 'Billing address 2',
40
- 'billing_postcode' => 'Billing postcode',
41
- 'billing_city' => 'Billing city',
42
- 'billing_state' => 'Billing state',
43
- 'billing_country' => 'Billing country',
44
- 'shipping_first_name' => 'Shipping first name',
45
- 'shipping_last_name' => 'Shipping last name',
46
- 'shipping_company' => 'Shipping company',
47
- 'shipping_phone' => 'Shipping phone',
48
- 'shipping_address_1' => 'Shipping address 1',
49
- 'shipping_address_2' => 'Shipping address 2',
50
- 'shipping_postcode' => 'Shipping postcode',
51
- 'shipping_city' => 'Shipping city',
52
- 'shipping_state' => 'Shipping state',
53
- 'shipping_country' => 'Shipping country',
54
- 'customer_note' => 'Customer note',
55
- 'wt_import_key' => 'wt_import_key',
56
- 'shipping_items' => 'Shipping items',
57
- 'fee_items' => 'Fee items',
58
- 'tax_items' => 'Tax items',
59
- 'coupon_items' => 'Coupon items',
60
- 'refund_items' => 'Refund items',
61
- 'order_notes' => 'Order notes',
62
- 'download_permissions' => 'Download permissions'
63
- );
64
-
65
- if (!function_exists('is_plugin_active'))
66
- require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
67
-
68
- if (is_plugin_active('wt-woocommerce-packing-list/wf-woocommerce-packing-list.php')):
69
- $base_columns['meta:wf_invoice_number'] = 'WT Invoice number';
70
- $base_columns['meta:_wf_invoice_date'] = 'WT Invoice date';
71
- endif;
72
-
73
- return apply_filters('hf_csv_order_post_columns', $base_columns);
1
+ <?php
2
+
3
+ if (!defined('ABSPATH')) {
4
+ exit;
5
+ }
6
+
7
+ $base_columns = array(
8
+ 'order_id' => 'ID',
9
+ 'order_number' => 'Order number',
10
+ 'order_date' => 'Order date',
11
+ 'paid_date' => 'Paid date',
12
+ 'status' => 'Status',
13
+ 'shipping_total' => 'Shipping total',
14
+ 'shipping_tax_total' => 'Shipping tax total',
15
+ 'fee_total' => 'Fee total',
16
+ 'fee_tax_total' => 'Fee tax total',
17
+ 'tax_total' => 'Tax total',
18
+ 'cart_discount' => 'Cart discount',
19
+ 'order_discount' => 'Order discount',
20
+ 'discount_total' => 'Discount total',
21
+ 'order_total' => 'Order total',
22
+ //'refunded_total' => 'refunded_total',
23
+ 'order_currency' => 'Order currency',
24
+ 'payment_method' => 'Payment method',
25
+ 'payment_method_title' => 'Payment method title',
26
+ 'transaction_id' => 'Transaction ID',
27
+ 'customer_ip_address' => 'Customer IP address',
28
+ 'customer_user_agent' => 'Customer user agent',
29
+ 'shipping_method' => 'Shipping method',
30
+ 'customer_id' => 'Customer ID',
31
+ 'customer_user' => 'Customer user',
32
+ 'customer_email' => 'Customer email',
33
+ 'billing_first_name' => 'Billing first name',
34
+ 'billing_last_name' => 'Billing last name',
35
+ 'billing_company' => 'Billing company',
36
+ 'billing_email' => 'Billing email',
37
+ 'billing_phone' => 'Billing phone',
38
+ 'billing_address_1' => 'Billing address 1',
39
+ 'billing_address_2' => 'Billing address 2',
40
+ 'billing_postcode' => 'Billing postcode',
41
+ 'billing_city' => 'Billing city',
42
+ 'billing_state' => 'Billing state',
43
+ 'billing_country' => 'Billing country',
44
+ 'shipping_first_name' => 'Shipping first name',
45
+ 'shipping_last_name' => 'Shipping last name',
46
+ 'shipping_company' => 'Shipping company',
47
+ 'shipping_phone' => 'Shipping phone',
48
+ 'shipping_address_1' => 'Shipping address 1',
49
+ 'shipping_address_2' => 'Shipping address 2',
50
+ 'shipping_postcode' => 'Shipping postcode',
51
+ 'shipping_city' => 'Shipping city',
52
+ 'shipping_state' => 'Shipping state',
53
+ 'shipping_country' => 'Shipping country',
54
+ 'customer_note' => 'Customer note',
55
+ 'wt_import_key' => 'wt_import_key',
56
+ 'shipping_items' => 'Shipping items',
57
+ 'fee_items' => 'Fee items',
58
+ 'tax_items' => 'Tax items',
59
+ 'coupon_items' => 'Coupon items',
60
+ 'refund_items' => 'Refund items',
61
+ 'order_notes' => 'Order notes',
62
+ 'download_permissions' => 'Download permissions'
63
+ );
64
+
65
+ if (!function_exists('is_plugin_active'))
66
+ require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
67
+
68
+ if (is_plugin_active('wt-woocommerce-packing-list/wf-woocommerce-packing-list.php')):
69
+ $base_columns['meta:wf_invoice_number'] = 'WT Invoice number';
70
+ $base_columns['meta:_wf_invoice_date'] = 'WT Invoice date';
71
+ endif;
72
+
73
+ return apply_filters('hf_csv_order_post_columns', $base_columns);
admin/modules/order/data/data-wf-post-columns-coupon.php CHANGED
@@ -1,35 +1,35 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) {
3
- exit;
4
- }
5
-
6
- return apply_filters('coupon_csv_coupon_post_columns', array(
7
- 'post_title' => 'post_title',
8
- 'ID' => 'ID',
9
- 'post_excerpt' => 'post_excerpt',
10
- 'post_status' => 'post_status',
11
- 'post_date' => 'post_date',
12
- 'post_author' => 'post_author',
13
-
14
- // // Meta
15
- 'discount_type' => 'discount_type',
16
- 'coupon_amount' => 'coupon_amount',
17
- 'individual_use' => 'individual_use',
18
- 'product_ids' => 'product_ids',
19
- 'product_SKUs' => 'product_SKUs',
20
- 'exclude_product_ids' => 'exclude_product_ids',
21
- 'exclude_product_SKUs' => 'exclude_product_SKUs',
22
- 'usage_count' => 'usage_count',
23
- 'usage_limit' => 'usage_limit',
24
- 'usage_limit_per_user' => 'usage_limit_per_user',
25
- 'limit_usage_to_x_items' => 'limit_usage_to_x_items',
26
- 'expiry_date' => 'expiry_date',
27
- 'date_expires' => 'date_expires',
28
- 'free_shipping' => 'free_shipping',
29
- 'exclude_sale_items' => 'exclude_sale_items',
30
- 'product_categories' => 'product_categories',
31
- 'exclude_product_categories' => 'exclude_product_categories',
32
- 'minimum_amount' => 'minimum_amount',
33
- 'maximum_amount' => 'maximum_amount',
34
- 'customer_email' => 'customer_email',
35
  ) );
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+
6
+ return apply_filters('coupon_csv_coupon_post_columns', array(
7
+ 'post_title' => 'post_title',
8
+ 'ID' => 'ID',
9
+ 'post_excerpt' => 'post_excerpt',
10
+ 'post_status' => 'post_status',
11
+ 'post_date' => 'post_date',
12
+ 'post_author' => 'post_author',
13
+
14
+ // // Meta
15
+ 'discount_type' => 'discount_type',
16
+ 'coupon_amount' => 'coupon_amount',
17
+ 'individual_use' => 'individual_use',
18
+ 'product_ids' => 'product_ids',
19
+ 'product_SKUs' => 'product_SKUs',
20
+ 'exclude_product_ids' => 'exclude_product_ids',
21
+ 'exclude_product_SKUs' => 'exclude_product_SKUs',
22
+ 'usage_count' => 'usage_count',
23
+ 'usage_limit' => 'usage_limit',
24
+ 'usage_limit_per_user' => 'usage_limit_per_user',
25
+ 'limit_usage_to_x_items' => 'limit_usage_to_x_items',
26
+ 'expiry_date' => 'expiry_date',
27
+ 'date_expires' => 'date_expires',
28
+ 'free_shipping' => 'free_shipping',
29
+ 'exclude_sale_items' => 'exclude_sale_items',
30
+ 'product_categories' => 'product_categories',
31
+ 'exclude_product_categories' => 'exclude_product_categories',
32
+ 'minimum_amount' => 'minimum_amount',
33
+ 'maximum_amount' => 'maximum_amount',
34
+ 'customer_email' => 'customer_email',
35
  ) );
admin/modules/order/data/data-wf-post-subscription-columns.php CHANGED
@@ -1,88 +1,88 @@
1
- <?php
2
-
3
- if (!defined('ABSPATH')) {
4
- exit;
5
- }
6
-
7
- $columns = array(
8
- 'subscription_id' => 'subscription_id',
9
- 'subscription_status' => 'subscription_status',
10
- 'customer_id' => 'customer_id',
11
- 'customer_username' => 'customer_username',
12
- 'customer_email' => 'customer_email',
13
- 'date_created' => 'date_created',
14
- 'trial_end_date' => 'trial_end_date',
15
- 'next_payment_date' => 'next_payment_date',
16
- 'last_order_date_created' => 'last_order_date_created',
17
- 'end_date' => 'end_date',
18
- 'post_parent' => 'post_parent',
19
- 'billing_period' => 'billing_period',
20
- 'billing_interval' => 'billing_interval',
21
- 'order_shipping' => 'order_shipping',
22
- 'order_shipping_tax' => 'order_shipping_tax',
23
- 'fee_total' => 'fee_total',
24
- 'fee_tax_total' => 'fee_tax_total',
25
- 'order_tax' => 'order_tax',
26
- 'cart_discount' => 'cart_discount',
27
- 'cart_discount_tax' => 'cart_discount_tax',
28
- 'order_total' => 'order_total',
29
- 'order_currency' => 'order_currency',
30
- 'payment_method' => 'payment_method',
31
- 'payment_method_title' => 'payment_method_title',
32
- 'shipping_method' => 'shipping_method',
33
- 'billing_first_name' => 'billing_first_name',
34
- 'billing_last_name' => 'billing_last_name',
35
- 'billing_email' => 'billing_email',
36
- 'billing_phone' => 'billing_phone',
37
- 'billing_address_1' => 'billing_address_1',
38
- 'billing_address_2' => 'billing_address_2',
39
- 'billing_postcode' => 'billing_postcode',
40
- 'billing_city' => 'billing_city',
41
- 'billing_state' => 'billing_state',
42
- 'billing_country' => 'billing_country',
43
- 'billing_company' => 'billing_company',
44
- 'shipping_first_name' => 'shipping_first_name',
45
- 'shipping_last_name' => 'shipping_last_name',
46
- 'shipping_address_1' => 'shipping_address_1',
47
- 'shipping_address_2' => 'shipping_address_2',
48
- 'shipping_postcode' => 'shipping_postcode',
49
- 'shipping_city' => 'shipping_city',
50
- 'shipping_state' => 'shipping_state',
51
- 'shipping_country' => 'shipping_country',
52
- 'shipping_company' => 'shipping_company',
53
- 'shipping_phone' => 'shipping_phone',
54
- 'customer_note' => 'customer_note',
55
- 'order_items' => 'order_items',
56
- 'order_notes' => 'order_notes',
57
- 'renewal_orders' => 'renewal_orders',
58
- 'shipping_items' => 'shipping_items',
59
- 'coupon_items' => 'coupon_items',
60
- 'fee_items' => 'fee_items',
61
- 'tax_items' => 'tax_items',
62
- 'download_permissions' => 'download_permissions'
63
- );
64
-
65
- global $wpdb;
66
-
67
- if(class_exists('HF_Subscription')){
68
- $post_type = 'hf_shop_subscription';
69
- } else {
70
- $post_type = 'shop_subscription';
71
- }
72
- $meta_keys = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT pm.meta_key
73
- FROM {$wpdb->postmeta} AS pm
74
- LEFT JOIN {$wpdb->posts} AS p ON p.ID = pm.post_id
75
- WHERE p.post_type = %s
76
- AND pm.meta_key NOT IN ('_schedule_next_payment','_schedule_start','_schedule_end','_schedule_trial_end','_download_permissions_granted','_subscription_renewal_order_ids_cache','_subscription_resubscribe_order_ids_cache','_subscription_switch_order_ids_cache','_created_via','_customer_user')
77
- ORDER BY pm.meta_key",$post_type));
78
- foreach ($meta_keys as $meta_key) {
79
- if (empty($columns[$meta_key])) {
80
- if($meta_key[0] == '_' && empty($columns[substr($meta_key, 1)])){
81
- $columns['meta:'.$meta_key] = 'meta:'.$meta_key; // adding an extra prefix for identifying meta while import process
82
- } elseif($meta_key[0] != '_') {
83
- $columns['meta:'.$meta_key] = 'meta:'.$meta_key;
84
- }
85
- }
86
- }
87
-
88
  return apply_filters('hf_csv_subscription_order_header_columns',$columns);
1
+ <?php
2
+
3
+ if (!defined('ABSPATH')) {
4
+ exit;
5
+ }
6
+
7
+ $columns = array(
8
+ 'subscription_id' => 'subscription_id',
9
+ 'subscription_status' => 'subscription_status',
10
+ 'customer_id' => 'customer_id',
11
+ 'customer_username' => 'customer_username',
12
+ 'customer_email' => 'customer_email',
13
+ 'date_created' => 'date_created',
14
+ 'trial_end_date' => 'trial_end_date',
15
+ 'next_payment_date' => 'next_payment_date',
16
+ 'last_order_date_created' => 'last_order_date_created',
17
+ 'end_date' => 'end_date',
18
+ 'post_parent' => 'post_parent',
19
+ 'billing_period' => 'billing_period',
20
+ 'billing_interval' => 'billing_interval',
21
+ 'order_shipping' => 'order_shipping',
22
+ 'order_shipping_tax' => 'order_shipping_tax',
23
+ 'fee_total' => 'fee_total',
24
+ 'fee_tax_total' => 'fee_tax_total',
25
+ 'order_tax' => 'order_tax',
26
+ 'cart_discount' => 'cart_discount',
27
+ 'cart_discount_tax' => 'cart_discount_tax',
28
+ 'order_total' => 'order_total',
29
+ 'order_currency' => 'order_currency',
30
+ 'payment_method' => 'payment_method',
31
+ 'payment_method_title' => 'payment_method_title',
32
+ 'shipping_method' => 'shipping_method',
33
+ 'billing_first_name' => 'billing_first_name',
34
+ 'billing_last_name' => 'billing_last_name',
35
+ 'billing_email' => 'billing_email',
36
+ 'billing_phone' => 'billing_phone',
37
+ 'billing_address_1' => 'billing_address_1',
38
+ 'billing_address_2' => 'billing_address_2',
39
+ 'billing_postcode' => 'billing_postcode',
40
+ 'billing_city' => 'billing_city',
41
+ 'billing_state' => 'billing_state',
42
+ 'billing_country' => 'billing_country',
43
+ 'billing_company' => 'billing_company',
44
+ 'shipping_first_name' => 'shipping_first_name',
45
+ 'shipping_last_name' => 'shipping_last_name',
46
+ 'shipping_address_1' => 'shipping_address_1',
47
+ 'shipping_address_2' => 'shipping_address_2',
48
+ 'shipping_postcode' => 'shipping_postcode',
49
+ 'shipping_city' => 'shipping_city',
50
+ 'shipping_state' => 'shipping_state',
51
+ 'shipping_country' => 'shipping_country',
52
+ 'shipping_company' => 'shipping_company',
53
+ 'shipping_phone' => 'shipping_phone',
54
+ 'customer_note' => 'customer_note',
55
+ 'order_items' => 'order_items',
56
+ 'order_notes' => 'order_notes',
57
+ 'renewal_orders' => 'renewal_orders',
58
+ 'shipping_items' => 'shipping_items',
59
+ 'coupon_items' => 'coupon_items',
60
+ 'fee_items' => 'fee_items',
61
+ 'tax_items' => 'tax_items',
62
+ 'download_permissions' => 'download_permissions'
63
+ );
64
+
65
+ global $wpdb;
66
+
67
+ if(class_exists('HF_Subscription')){
68
+ $post_type = 'hf_shop_subscription';
69
+ } else {
70
+ $post_type = 'shop_subscription';
71
+ }
72
+ $meta_keys = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT pm.meta_key
73
+ FROM {$wpdb->postmeta} AS pm
74
+ LEFT JOIN {$wpdb->posts} AS p ON p.ID = pm.post_id
75
+ WHERE p.post_type = %s
76
+ AND pm.meta_key NOT IN ('_schedule_next_payment','_schedule_start','_schedule_end','_schedule_trial_end','_download_permissions_granted','_subscription_renewal_order_ids_cache','_subscription_resubscribe_order_ids_cache','_subscription_switch_order_ids_cache','_created_via','_customer_user')
77
+ ORDER BY pm.meta_key",$post_type));
78
+ foreach ($meta_keys as $meta_key) {
79
+ if (empty($columns[$meta_key])) {
80
+ if($meta_key[0] == '_' && empty($columns[substr($meta_key, 1)])){
81
+ $columns['meta:'.$meta_key] = 'meta:'.$meta_key; // adding an extra prefix for identifying meta while import process
82
+ } elseif($meta_key[0] != '_') {
83
+ $columns['meta:'.$meta_key] = 'meta:'.$meta_key;
84
+ }
85
+ }
86
+ }
87
+
88
  return apply_filters('hf_csv_subscription_order_header_columns',$columns);
admin/modules/order/data/data-wf-xml-default-meta.php CHANGED
@@ -1,45 +1,45 @@
1
- <?php
2
- // Default meta columns for xml
3
- return apply_filters('hf_xml_order_default_meta_columns', array(
4
- '_billing_address_1' => '_billing_address_1',
5
- '_billing_address_2' => '_billing_address_2',
6
- '_billing_city' => '_billing_city',
7
- '_billing_company' => '_billing_company',
8
- '_billing_country' => '_billing_country',
9
- '_billing_email' => '_billing_email',
10
- '_billing_first_name' => '_billing_first_name',
11
- '_billing_last_name' => '_billing_last_name',
12
- '_billing_phone' => '_billing_phone',
13
- '_billing_postcode' => '_billing_postcode',
14
- '_billing_state' => '_billing_state',
15
- '_shipping_address_1' => '_shipping_address_1',
16
- '_shipping_address_2' => '_shipping_address_2',
17
- '_shipping_city' => '_shipping_city',
18
- '_shipping_company' => '_shipping_company',
19
- '_shipping_phone' => '_shipping_phone',
20
- '_shipping_country' => '_shipping_country',
21
- '_shipping_first_name' => '_shipping_first_name',
22
- '_shipping_last_name' => '_shipping_last_name',
23
- '_shipping_method' => '_shipping_method',
24
- '_shipping_postcode' => '_shipping_postcode',
25
- '_shipping_state' => '_shipping_state',
26
- 'wf_order_exported_status' => 'wf_order_exported_status',
27
- '_payment_method' => '_payment_method',
28
- '_payment_method_title' => '_payment_method_title',
29
- '_completed_date' => '_completed_date',
30
- '_customer_email' => '_customer_email',
31
- '_fee_total' => '_fee_total',
32
- '_order_currency' => '_order_currency',
33
- '_order_total' => '_order_total',
34
- '_order_number' => '_order_number',
35
- '_cart_discount' => '_cart_discount',
36
- '_order_discount' => '_order_discount',
37
- '_discount_total' => '_discount_total',
38
- '_tax_total' => '_tax_total',
39
- '_date_completed' => '_date_completed',
40
- '_shipping_tax_total' => '_shipping_tax_total',
41
- '_paid_date' => '_paid_date',
42
- '_customer_user' => '_customer_user',
43
- '_order_shipping' => '_order_shipping',
44
- '_order_shipping_tax' => '_order_shipping_tax'));
45
-
1
+ <?php
2
+ // Default meta columns for xml
3
+ return apply_filters('hf_xml_order_default_meta_columns', array(
4
+ '_billing_address_1' => '_billing_address_1',
5
+ '_billing_address_2' => '_billing_address_2',
6
+ '_billing_city' => '_billing_city',
7
+ '_billing_company' => '_billing_company',
8
+ '_billing_country' => '_billing_country',
9
+ '_billing_email' => '_billing_email',
10
+ '_billing_first_name' => '_billing_first_name',
11
+ '_billing_last_name' => '_billing_last_name',
12
+ '_billing_phone' => '_billing_phone',
13
+ '_billing_postcode' => '_billing_postcode',
14
+ '_billing_state' => '_billing_state',
15
+ '_shipping_address_1' => '_shipping_address_1',
16
+ '_shipping_address_2' => '_shipping_address_2',
17
+ '_shipping_city' => '_shipping_city',
18
+ '_shipping_company' => '_shipping_company',
19
+ '_shipping_phone' => '_shipping_phone',
20
+ '_shipping_country' => '_shipping_country',
21
+ '_shipping_first_name' => '_shipping_first_name',
22
+ '_shipping_last_name' => '_shipping_last_name',
23
+ '_shipping_method' => '_shipping_method',
24
+ '_shipping_postcode' => '_shipping_postcode',
25
+ '_shipping_state' => '_shipping_state',
26
+ 'wf_order_exported_status' => 'wf_order_exported_status',
27
+ '_payment_method' => '_payment_method',
28
+ '_payment_method_title' => '_payment_method_title',
29
+ '_completed_date' => '_completed_date',
30
+ '_customer_email' => '_customer_email',
31
+ '_fee_total' => '_fee_total',
32
+ '_order_currency' => '_order_currency',
33
+ '_order_total' => '_order_total',
34
+ '_order_number' => '_order_number',
35
+ '_cart_discount' => '_cart_discount',
36
+ '_order_discount' => '_order_discount',
37
+ '_discount_total' => '_discount_total',
38
+ '_tax_total' => '_tax_total',
39
+ '_date_completed' => '_date_completed',
40
+ '_shipping_tax_total' => '_shipping_tax_total',
41
+ '_paid_date' => '_paid_date',
42
+ '_customer_user' => '_customer_user',
43
+ '_order_shipping' => '_order_shipping',
44
+ '_order_shipping_tax' => '_order_shipping_tax'));
45
+
admin/modules/order/data/data/data-wf-reserved-fields-pair.php CHANGED
@@ -1,74 +1,74 @@
1
- <?php
2
-
3
- if (!defined('ABSPATH')) {
4
- exit;
5
- }
6
-
7
- $base_reserved_columns = array(
8
- 'order_id' => array('title' => 'ID ', 'description' => 'Order ID '),
9
- 'order_number' => array('title' => 'Order number', 'description' => 'Order Number'),
10
- 'order_date' => array('title' => 'Order date', 'description' => 'Order Date', 'type' => 'date'),
11
- 'paid_date' => array('title' => 'Paid date', 'description' => 'Paid Date', 'type' => 'date'),
12
- 'status' => array('title' => 'Status', 'description' => 'Order Status ( processing , pending ...) '),
13
- 'shipping_total' => array('title' => 'Shipping total', 'description' => 'Shipping Total amount'),
14
- 'shipping_tax_total' => array('title' => 'Shipping tax total', 'description' => 'Shipping Tax Total'),
15
- 'fee_total' => array('title' => 'Total fee', 'description' => 'Total Fee'),
16
- 'fee_tax_total' => array('title' => 'Total tax fee', 'description' => 'Total Tax Fee'),
17
- 'tax_total' => array('title' => 'Total tax', 'description' => 'Total Tax'),
18
- 'cart_discount' => array('title' => 'Cart discount', 'description' => 'Cart Discount'),
19
- 'order_discount' => array('title' => 'Order discount', 'description' => 'Order Discount'),
20
- 'discount_total' => array('title' => 'Discount total', 'description' => 'Discount Total'),
21
- 'order_total' => array('title' => 'Order total', 'description' => 'Order Total'),
22
- //'refunded_total' => array('title'=>'refunded_total','description'=>'refunded_total'),
23
- 'order_currency' => array('title' => 'Order currency', 'description' => 'Order Currency'),
24
- 'payment_method' => array('title' => 'Payment method', 'description' => 'Payment Method'),
25
- 'payment_method_title' => array('title' => 'Payment method title', 'description' => 'Payment Method Title'),
26
- 'transaction_id' => array('title' => 'Transaction ID', 'description' => 'Payment transaction id'),
27
- 'customer_ip_address' => array('title' => 'Customer IP address', 'description' => 'Customer ip address'),
28
- 'customer_user_agent' => array('title' => 'Customer user agent', 'description' => 'Customer user agent'),
29
- 'shipping_method' => array('title' => 'Shipping method', 'description' => 'Shipping Method'),
30
- 'customer_email' => array('title' => 'Customer email', 'description' => 'Customer Email ( if not provided order will be created as Guest)'),
31
- 'customer_user' => array('title' => 'Customer user', 'description' => 'Customer id ( if not provided order will be created as Guest)'),
32
- 'billing_first_name' => array('title' => 'Billing first name', 'description' => 'billing_first_name'),
33
- 'billing_last_name' => array('title' => 'Billing last name', 'description' => 'billing_last_name'),
34
- 'billing_company' => array('title' => 'Billing company', 'description' => 'billing_company'),
35
- 'billing_email' => array('title' => 'Billing email', 'description' => 'billing_email'),
36
- 'billing_phone' => array('title' => 'Billing phone', 'description' => 'billing_phone'),
37
- 'billing_address_1' => array('title' => 'Billing address 1', 'description' => 'billing_address_1'),
38
- 'billing_address_2' => array('title' => 'Billing address 2', 'description' => 'billing_address_2'),
39
- 'billing_postcode' => array('title' => 'Billing postcode', 'description' => 'billing_postcode'),
40
- 'billing_city' => array('title' => 'Billing city', 'description' => 'billing_city'),
41
- 'billing_state' => array('title' => 'Billing state', 'description' => 'billing_state'),
42
- 'billing_country' => array('title' => 'Billing country', 'description' => 'billing_country'),
43
- 'shipping_first_name' => array('title' => 'Shipping first name', 'description' => 'shipping_first_name'),
44
- 'shipping_last_name' => array('title' => 'Shipping last name', 'description' => 'shipping_last_name'),
45
- 'shipping_company' => array('title' => 'Shipping company', 'description' => 'shipping_company'),
46
- 'shipping_phone' => array('title' => 'Shipping phone', 'description' => 'shipping_phone'),
47
- 'shipping_address_1' => array('title' => 'Shipping address 1', 'description' => 'shipping_address_1'),
48
- 'shipping_address_2' => array('title' => 'Shipping address 2', 'description' => 'shipping_address_2'),
49
- 'shipping_postcode' => array('title' => 'Shipping postcode', 'description' => 'shipping_postcode'),
50
- 'shipping_city' => array('title' => 'Shipping city', 'description' => 'shipping_city'),
51
- 'shipping_state' => array('title' => 'Shipping state', 'description' => 'shipping_state'),
52
- 'shipping_country' => array('title' => 'Shipping country', 'description' => 'shipping_country'),
53
- 'customer_note' => array('title' => 'Customer note', 'description' => 'customer_note'),
54
- 'wt_import_key' => array('title' => 'wt_impor_key', 'description' => 'wt_import_key'),
55
- 'shipping_items' => array('title' => 'Shipping items', 'description' => 'shipping_items'),
56
- 'fee_items' => array('title' => 'Fee items', 'description' => 'fee_items'),
57
- 'tax_items' => array('title' => 'Tax items', 'description' => 'tax_items'),
58
- 'coupon_items' => array('title' => 'Coupon items', 'description' => 'coupons'),
59
- 'refund_items' => array('title' => 'Refund items', 'description' => 'refund_items'),
60
- 'order_notes' => array('title' => 'Order notes', 'description' => 'Order notes'),
61
- 'line_item_' => array('title' => 'Line_item_', 'description' => 'Line Items', 'field_type' => 'start_with'),
62
- 'download_permissions' => array('title' => 'Downloadable product permissions ', 'description' => 'Permissions for order items will automatically be granted when the order status changes to processing or completed.'),
63
- );
64
-
65
- if (!function_exists('is_plugin_active'))
66
- require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
67
-
68
- if (is_plugin_active('wt-woocommerce-packing-list/wf-woocommerce-packing-list.php')):
69
- $base_reserved_columns['meta:wf_invoice_number'] = array('title' => 'WT Invoice number ', 'description' => 'WebToffee Invoice number');
70
- $base_reserved_columns['meta:_wf_invoice_date'] = array('title' => 'WT Invoice date ', 'description' => 'WebToffee Invoice date');
71
- endif;
72
-
73
- // Reserved column names
74
- return apply_filters('woocommerce_csv_order_reserved_fields_pair', $base_reserved_columns);
1
+ <?php
2
+
3
+ if (!defined('ABSPATH')) {
4
+ exit;
5
+ }
6
+
7
+ $base_reserved_columns = array(
8
+ 'order_id' => array('title' => 'ID ', 'description' => 'Order ID '),
9
+ 'order_number' => array('title' => 'Order number', 'description' => 'Order Number'),
10
+ 'order_date' => array('title' => 'Order date', 'description' => 'Order Date', 'type' => 'date'),
11
+ 'paid_date' => array('title' => 'Paid date', 'description' => 'Paid Date', 'type' => 'date'),
12
+ 'status' => array('title' => 'Status', 'description' => 'Order Status ( processing , pending ...) '),
13
+ 'shipping_total' => array('title' => 'Shipping total', 'description' => 'Shipping Total amount'),
14
+ 'shipping_tax_total' => array('title' => 'Shipping tax total', 'description' => 'Shipping Tax Total'),
15
+ 'fee_total' => array('title' => 'Total fee', 'description' => 'Total Fee'),
16
+ 'fee_tax_total' => array('title' => 'Total tax fee', 'description' => 'Total Tax Fee'),
17
+ 'tax_total' => array('title' => 'Total tax', 'description' => 'Total Tax'),
18
+ 'cart_discount' => array('title' => 'Cart discount', 'description' => 'Cart Discount'),
19
+ 'order_discount' => array('title' => 'Order discount', 'description' => 'Order Discount'),
20
+ 'discount_total' => array('title' => 'Discount total', 'description' => 'Discount Total'),
21
+ 'order_total' => array('title' => 'Order total', 'description' => 'Order Total'),
22
+ //'refunded_total' => array('title'=>'refunded_total','description'=>'refunded_total'),
23
+ 'order_currency' => array('title' => 'Order currency', 'description' => 'Order Currency'),
24
+ 'payment_method' => array('title' => 'Payment method', 'description' => 'Payment Method'),
25
+ 'payment_method_title' => array('title' => 'Payment method title', 'description' => 'Payment Method Title'),
26
+ 'transaction_id' => array('title' => 'Transaction ID', 'description' => 'Payment transaction id'),
27
+ 'customer_ip_address' => array('title' => 'Customer IP address', 'description' => 'Customer ip address'),
28
+ 'customer_user_agent' => array('title' => 'Customer user agent', 'description' => 'Customer user agent'),
29
+ 'shipping_method' => array('title' => 'Shipping method', 'description' => 'Shipping Method'),
30
+ 'customer_email' => array('title' => 'Customer email', 'description' => 'Customer Email ( if not provided order will be created as Guest)'),
31
+ 'customer_user' => array('title' => 'Customer user', 'description' => 'Customer id ( if not provided order will be created as Guest)'),
32
+ 'billing_first_name' => array('title' => 'Billing first name', 'description' => 'billing_first_name'),
33
+ 'billing_last_name' => array('title' => 'Billing last name', 'description' => 'billing_last_name'),
34
+ 'billing_company' => array('title' => 'Billing company', 'description' => 'billing_company'),
35
+ 'billing_email' => array('title' => 'Billing email', 'description' => 'billing_email'),
36
+ 'billing_phone' => array('title' => 'Billing phone', 'description' => 'billing_phone'),
37
+ 'billing_address_1' => array('title' => 'Billing address 1', 'description' => 'billing_address_1'),
38
+ 'billing_address_2' => array('title' => 'Billing address 2', 'description' => 'billing_address_2'),
39
+ 'billing_postcode' => array('title' => 'Billing postcode', 'description' => 'billing_postcode'),
40
+ 'billing_city' => array('title' => 'Billing city', 'description' => 'billing_city'),
41
+ 'billing_state' => array('title' => 'Billing state', 'description' => 'billing_state'),
42
+ 'billing_country' => array('title' => 'Billing country', 'description' => 'billing_country'),
43
+ 'shipping_first_name' => array('title' => 'Shipping first name', 'description' => 'shipping_first_name'),
44
+ 'shipping_last_name' => array('title' => 'Shipping last name', 'description' => 'shipping_last_name'),
45
+ 'shipping_company' => array('title' => 'Shipping company', 'description' => 'shipping_company'),
46
+ 'shipping_phone' => array('title' => 'Shipping phone', 'description' => 'shipping_phone'),
47
+ 'shipping_address_1' => array('title' => 'Shipping address 1', 'description' => 'shipping_address_1'),
48
+ 'shipping_address_2' => array('title' => 'Shipping address 2', 'description' => 'shipping_address_2'),
49
+ 'shipping_postcode' => array('title' => 'Shipping postcode', 'description' => 'shipping_postcode'),
50
+ 'shipping_city' => array('title' => 'Shipping city', 'description' => 'shipping_city'),
51
+ 'shipping_state' => array('title' => 'Shipping state', 'description' => 'shipping_state'),
52
+ 'shipping_country' => array('title' => 'Shipping country', 'description' => 'shipping_country'),
53
+ 'customer_note' => array('title' => 'Customer note', 'description' => 'customer_note'),
54
+ 'wt_import_key' => array('title' => 'wt_impor_key', 'description' => 'wt_import_key'),
55
+ 'shipping_items' => array('title' => 'Shipping items', 'description' => 'shipping_items'),
56
+ 'fee_items' => array('title' => 'Fee items', 'description' => 'fee_items'),
57
+ 'tax_items' => array('title' => 'Tax items', 'description' => 'tax_items'),
58
+ 'coupon_items' => array('title' => 'Coupon items', 'description' => 'coupons'),
59
+ 'refund_items' => array('title' => 'Refund items', 'description' => 'refund_items'),
60
+ 'order_notes' => array('title' => 'Order notes', 'description' => 'Order notes'),
61
+ 'line_item_' => array('title' => 'Line_item_', 'description' => 'Line Items', 'field_type' => 'start_with'),
62
+ 'download_permissions' => array('title' => 'Downloadable product permissions ', 'description' => 'Permissions for order items will automatically be granted when the order status changes to processing or completed.'),
63
+ );
64
+
65
+ if (!function_exists('is_plugin_active'))
66
+ require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
67
+
68
+ if (is_plugin_active('wt-woocommerce-packing-list/wf-woocommerce-packing-list.php')):
69
+ $base_reserved_columns['meta:wf_invoice_number'] = array('title' => 'WT Invoice number ', 'description' => 'WebToffee Invoice number');
70
+ $base_reserved_columns['meta:_wf_invoice_date'] = array('title' => 'WT Invoice date ', 'description' => 'WebToffee Invoice date');
71
+ endif;
72
+
73
+ // Reserved column names
74
+ return apply_filters('woocommerce_csv_order_reserved_fields_pair', $base_reserved_columns);
admin/modules/order/export/export.php CHANGED
@@ -630,7 +630,7 @@ class Wt_Import_Export_For_Woo_Basic_Order_Export {
630
  'shipping_first_name' => $order->get_shipping_first_name(),
631
  'shipping_last_name' => $order->get_shipping_last_name(),
632
  'shipping_company' => $order->get_shipping_company(),
633
- 'shipping_phone' => $order->get_shipping_phone(),
634
  'shipping_address_1' => $order->get_shipping_address_1(),
635
  'shipping_address_2' => $order->get_shipping_address_2(),
636
  'shipping_postcode' => $order->get_shipping_postcode(),
630
  'shipping_first_name' => $order->get_shipping_first_name(),
631
  'shipping_last_name' => $order->get_shipping_last_name(),
632
  'shipping_company' => $order->get_shipping_company(),
633
+ 'shipping_phone' => (version_compare(WC_VERSION, '5.6', '<')) ? '' : $order->get_shipping_phone(),
634
  'shipping_address_1' => $order->get_shipping_address_1(),
635
  'shipping_address_2' => $order->get_shipping_address_2(),
636
  'shipping_postcode' => $order->get_shipping_postcode(),
admin/modules/order/import/import.php CHANGED
File without changes
admin/partials/wt-import-export-for-woo-admin-display.php CHANGED
File without changes
includes/class-wt-import-export-for-woo-activator.php CHANGED
File without changes
includes/class-wt-import-export-for-woo-deactivator.php CHANGED
File without changes
includes/class-wt-import-export-for-woo-i18n.php CHANGED
File without changes
includes/class-wt-import-export-for-woo-loader.php CHANGED
File without changes
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.0.9';
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.1.0';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
includes/index.php CHANGED
File without changes
index.php CHANGED
File without changes
languages/wt-import-export-for-woo.pot CHANGED
File without changes
license.txt CHANGED
File without changes
order-import-export-for-woocommerce.php CHANGED
@@ -6,7 +6,7 @@ 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.0.9
10
  Text Domain: order-import-export-for-woocommerce
11
  WC tested up to: 5.6
12
  License: GPLv3
@@ -45,7 +45,7 @@ if ( !defined( 'WT_IEW_DEBUG_BASIC_TROUBLESHOOT' ) ) {
45
  * Start at version 1.0.0 and use SemVer - https://semver.org
46
  * Rename this for your plugin and update it as you release new versions.
47
  */
48
- define( 'WT_O_IEW_VERSION', '2.0.9' );
49
 
50
  /**
51
  * The code that runs during plugin activation.
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.1.0
10
  Text Domain: order-import-export-for-woocommerce
11
  WC tested up to: 5.6
12
  License: GPLv3
45
  * Start at version 1.0.0 and use SemVer - https://semver.org
46
  * Rename this for your plugin and update it as you release new versions.
47
  */
48
+ define( 'WT_O_IEW_VERSION', '2.1.0' );
49
 
50
  /**
51
  * The code that runs during plugin activation.
public/class-wt-import-export-for-woo-public.php CHANGED
File without changes
public/css/wt-import-export-for-woo-public.css CHANGED
File without changes
public/index.php CHANGED
File without changes
public/js/wt-import-export-for-woo-public.js CHANGED
File without changes
public/partials/wt-import-export-for-woo-public-display.php CHANGED
File without changes
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: order export, order import, woocommerce, csv, coupon, woocommerce export o
5
  Requires at least: 3.0.1
6
  Tested up to: 5.8
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.9
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -225,6 +225,8 @@ Yes.
225
 
226
  == Changelog ==
227
 
 
 
228
  = 2.0.9 =
229
  * Added support for shipping phone number import export
230
  * Added import export compatibility for WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels plugin by WebToffee
@@ -461,8 +463,5 @@ Yes.
461
 
462
  == Upgrade Notice ==
463
 
464
- = 2.0.9 =
465
- * Added support for shipping phone number import export
466
- * Added import export compatibility for WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels plugin by WebToffee
467
- * Added import export compatibility for Sequential Order Number for WooCommerce plugin by WebToffee
468
- * WC 5.6 tested OK
5
  Requires at least: 3.0.1
6
  Tested up to: 5.8
7
  Requires PHP: 5.6
8
+ Stable tag: 2.1.0
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
225
 
226
  == Changelog ==
227
 
228
+ = 2.1.0 =
229
+ * Fix:- WC compatibility with shipping phone number
230
  = 2.0.9 =
231
  * Added support for shipping phone number import export
232
  * Added import export compatibility for WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels plugin by WebToffee
463
 
464
  == Upgrade Notice ==
465
 
466
+ = 2.1.0 =
467
+ * Fix:- WC compatibility with shipping phone number
 
 
 
uninstall.php CHANGED
File without changes