Version Description
- WC 5.7 tested OK
Download this release
Release Info
Developer | webtoffee |
Plugin | Order Export & Order Import for WooCommerce |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.1.1
- admin/class-wt-import-export-for-woo-admin.php +12 -1
- admin/classes/class-csvreader.php +0 -0
- admin/css/select2.css +0 -0
- admin/css/wt-import-export-for-woo-admin.css +0 -0
- admin/index.php +0 -0
- admin/js/dropzone.min.js +0 -0
- admin/js/select2.js +0 -0
- admin/js/wt-import-export-for-woo-admin.js +0 -0
- admin/modules/coupon/data/data-coupon-post-columns.php +34 -34
- admin/modules/coupon/data/data/data-wf-reserved-fields-pair.php +26 -26
- admin/modules/export/assets/js/main.js +1 -0
- admin/modules/import/assets/js/main.js +1 -0
- admin/modules/import/classes/class-import-ajax.php +0 -0
- admin/modules/import/import.php +0 -0
- admin/modules/import/views/_import_method_import_page.php +0 -0
- admin/modules/order/data/data-order-post-columns.php +73 -73
- admin/modules/order/data/data-wf-post-columns-coupon.php +34 -34
- admin/modules/order/data/data-wf-post-subscription-columns.php +87 -87
- admin/modules/order/data/data-wf-xml-default-meta.php +45 -45
- admin/modules/order/data/data/data-wf-reserved-fields-pair.php +74 -74
- admin/modules/order/import/import.php +0 -0
- admin/partials/wt-import-export-for-woo-admin-display.php +0 -0
- includes/class-wt-import-export-for-woo-activator.php +0 -0
- includes/class-wt-import-export-for-woo-deactivator.php +0 -0
- includes/class-wt-import-export-for-woo-i18n.php +0 -0
- includes/class-wt-import-export-for-woo-loader.php +0 -0
- includes/class-wt-import-export-for-woo.php +2 -1
- includes/index.php +0 -0
- index.php +0 -0
- languages/wt-import-export-for-woo.pot +0 -0
- license.txt +0 -0
- order-import-export-for-woocommerce.php +7 -4
- public/class-wt-import-export-for-woo-public.php +0 -0
- public/css/wt-import-export-for-woo-public.css +0 -0
- public/index.php +0 -0
- public/js/wt-import-export-for-woo-public.js +0 -0
- public/partials/wt-import-export-for-woo-public-display.php +0 -0
- readme.txt +7 -6
- uninstall.php +0 -0
admin/class-wt-import-export-for-woo-admin.php
CHANGED
@@ -122,7 +122,16 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
|
|
122 |
'sure'=>__('Are you sure?'),
|
123 |
'use_expression'=>__('Use expression as value.'),
|
124 |
'cancel'=>__('Cancel'),
|
125 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
);
|
127 |
wp_localize_script($this->plugin_name, 'wt_iew_basic_params', $params);
|
128 |
}
|
@@ -331,6 +340,8 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
|
|
331 |
'coupon'=>'order-import-export-for-woocommerce',
|
332 |
'product'=>'product-import-export-for-woo',
|
333 |
'product_review'=>'product-import-export-for-woo',
|
|
|
|
|
334 |
'user'=>'users-customers-import-export-for-wp-woocommerce',
|
335 |
);
|
336 |
foreach ($addon_modules_basic as $module_key => $module_path)
|
122 |
'sure'=>__('Are you sure?'),
|
123 |
'use_expression'=>__('Use expression as value.'),
|
124 |
'cancel'=>__('Cancel'),
|
125 |
+
),
|
126 |
+
'pro_plugins' => array(
|
127 |
+
'order' => "https://www.webtoffee.com/product/order-import-export-plugin-for-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Order_Import_Export&utm_content=".WT_O_IEW_VERSION,
|
128 |
+
'coupon' => "https://www.webtoffee.com/product/order-import-export-plugin-for-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Order_Import_Export&utm_content=".WT_O_IEW_VERSION,
|
129 |
+
'product' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=".WT_O_IEW_VERSION,
|
130 |
+
'product_review' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=".WT_O_IEW_VERSION,
|
131 |
+
'product_categories' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=".WT_O_IEW_VERSION,
|
132 |
+
'product_tags' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=".WT_O_IEW_VERSION,
|
133 |
+
'user' => "https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=User_Import_Export&utm_content=".WT_O_IEW_VERSION,
|
134 |
+
)
|
135 |
);
|
136 |
wp_localize_script($this->plugin_name, 'wt_iew_basic_params', $params);
|
137 |
}
|
340 |
'coupon'=>'order-import-export-for-woocommerce',
|
341 |
'product'=>'product-import-export-for-woo',
|
342 |
'product_review'=>'product-import-export-for-woo',
|
343 |
+
'product_categories'=>'product-import-export-for-woo',
|
344 |
+
'product_tags'=>'product-import-export-for-woo',
|
345 |
'user'=>'users-customers-import-export-for-wp-woocommerce',
|
346 |
);
|
347 |
foreach ($addon_modules_basic as $module_key => $module_path)
|
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/export/assets/js/main.js
CHANGED
@@ -623,6 +623,7 @@ var wt_iew_basic_export=(function( $ ) {
|
|
623 |
this.to_export_title=$('[name="wt_iew_export_post_type"] option:selected').text();
|
624 |
}
|
625 |
$('.wt_iew_step_head_post_type_name').html(this.to_export_title);
|
|
|
626 |
},
|
627 |
page_actions:function(step)
|
628 |
{
|
623 |
this.to_export_title=$('[name="wt_iew_export_post_type"] option:selected').text();
|
624 |
}
|
625 |
$('.wt_iew_step_head_post_type_name').html(this.to_export_title);
|
626 |
+
$('.wt-ier-green-btn').attr("href", wt_iew_basic_params.pro_plugins[this.to_export]);
|
627 |
},
|
628 |
page_actions:function(step)
|
629 |
{
|
admin/modules/import/assets/js/main.js
CHANGED
@@ -779,6 +779,7 @@ var wt_iew_basic_import=(function( $ ) {
|
|
779 |
this.to_import_title=$('[name="wt_iew_import_post_type"] option:selected').text();
|
780 |
}
|
781 |
$('.wt_iew_step_head_post_type_name').html(this.to_import_title);
|
|
|
782 |
if(this.to_import_title.includes('User'))
|
783 |
$('#user-required-field-message').show();
|
784 |
},
|
779 |
this.to_import_title=$('[name="wt_iew_import_post_type"] option:selected').text();
|
780 |
}
|
781 |
$('.wt_iew_step_head_post_type_name').html(this.to_import_title);
|
782 |
+
$('.wt-ier-green-btn').attr("href", wt_iew_basic_params.pro_plugins[this.to_import]);
|
783 |
if(this.to_import_title.includes('User'))
|
784 |
$('#user-required-field-message').show();
|
785 |
},
|
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/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.1.
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
@@ -277,6 +277,7 @@ class Wt_Import_Export_For_Woo_Basic {
|
|
277 |
*/
|
278 |
public static function load_modules($module)
|
279 |
{
|
|
|
280 |
if(Wt_Import_Export_For_Woo_Admin_Basic::module_exists($module))
|
281 |
{
|
282 |
if(!isset(self::$loaded_modules[$module]))
|
80 |
if ( defined( 'WT_O_IEW_VERSION' ) ) {
|
81 |
$this->version = WT_O_IEW_VERSION;
|
82 |
} else {
|
83 |
+
$this->version = '2.1.1';
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
277 |
*/
|
278 |
public static function load_modules($module)
|
279 |
{
|
280 |
+
|
281 |
if(Wt_Import_Export_For_Woo_Admin_Basic::module_exists($module))
|
282 |
{
|
283 |
if(!isset(self::$loaded_modules[$module]))
|
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,9 +6,9 @@ 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.1.
|
10 |
Text Domain: order-import-export-for-woocommerce
|
11 |
-
WC tested up to: 5.
|
12 |
License: GPLv3
|
13 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
14 |
*/
|
@@ -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.1.
|
49 |
|
50 |
/**
|
51 |
* The code that runs during plugin activation.
|
@@ -120,7 +120,10 @@ require plugin_dir_path( __FILE__ ) . 'includes/class-wt-import-export-for-woo.p
|
|
120 |
|
121 |
$advanced_settings = get_option('wt_iew_advanced_settings', array());
|
122 |
$ier_get_max_execution_time = (isset($advanced_settings['wt_iew_maximum_execution_time']) && $advanced_settings['wt_iew_maximum_execution_time'] != '') ? $advanced_settings['wt_iew_maximum_execution_time'] : ini_get('max_execution_time');
|
123 |
-
|
|
|
|
|
|
|
124 |
|
125 |
/**
|
126 |
* Begins execution of the plugin.
|
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.1
|
10 |
Text Domain: order-import-export-for-woocommerce
|
11 |
+
WC tested up to: 5.7
|
12 |
License: GPLv3
|
13 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
14 |
*/
|
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.1' );
|
49 |
|
50 |
/**
|
51 |
* The code that runs during plugin activation.
|
120 |
|
121 |
$advanced_settings = get_option('wt_iew_advanced_settings', array());
|
122 |
$ier_get_max_execution_time = (isset($advanced_settings['wt_iew_maximum_execution_time']) && $advanced_settings['wt_iew_maximum_execution_time'] != '') ? $advanced_settings['wt_iew_maximum_execution_time'] : ini_get('max_execution_time');
|
123 |
+
|
124 |
+
if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
|
125 |
+
@set_time_limit($ier_get_max_execution_time);
|
126 |
+
}
|
127 |
|
128 |
/**
|
129 |
* Begins execution of the plugin.
|
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.1.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -29,7 +29,7 @@ The following are functionalities offered by the basic version of the plugin.
|
|
29 |
🔸 Supports various export filters (order status, product, coupon, customer, date range)
|
30 |
🔸 Export Subscription orders to a CSV file(Premium Feature).
|
31 |
🔸 Import Subscription orders from a CSV file(Premium Feature).
|
32 |
-
🔸 Tested OK with WooCommerce 5.
|
33 |
🔸 Tested OK with WP 5.8
|
34 |
🔸 Tested OK with PHP 8.0
|
35 |
|
@@ -71,7 +71,6 @@ More information about the setup of the plugin and a sample CSV that is taken as
|
|
71 |
✅ Scheduled export using Cron Job Feature.
|
72 |
✅ Import WooCommerce Orders from XML.
|
73 |
✅ Export WooCommerce Orders to XML.
|
74 |
-
✅ XML Export/Import supports Stamps.com desktop application, UPS WorldShip, Endicia and FedEx.
|
75 |
✅ Excellent Support for setting it up!
|
76 |
|
77 |
|
@@ -154,7 +153,7 @@ For every update of the plugin, you will be notified of the installed plugins pa
|
|
154 |
|
155 |
= Does this plugin export order line item details? =
|
156 |
|
157 |
-
Yes. You can import or export order line
|
158 |
|
159 |
= Can I update existing orders using this plugin? =
|
160 |
|
@@ -225,6 +224,8 @@ Yes.
|
|
225 |
|
226 |
== Changelog ==
|
227 |
|
|
|
|
|
228 |
= 2.1.0 =
|
229 |
* Fix:- WC compatibility with shipping phone number
|
230 |
= 2.0.9 =
|
@@ -463,5 +464,5 @@ Yes.
|
|
463 |
|
464 |
== Upgrade Notice ==
|
465 |
|
466 |
-
= 2.1.
|
467 |
-
*
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.1.1
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
29 |
🔸 Supports various export filters (order status, product, coupon, customer, date range)
|
30 |
🔸 Export Subscription orders to a CSV file(Premium Feature).
|
31 |
🔸 Import Subscription orders from a CSV file(Premium Feature).
|
32 |
+
🔸 Tested OK with WooCommerce 5.7
|
33 |
🔸 Tested OK with WP 5.8
|
34 |
🔸 Tested OK with PHP 8.0
|
35 |
|
71 |
✅ Scheduled export using Cron Job Feature.
|
72 |
✅ Import WooCommerce Orders from XML.
|
73 |
✅ Export WooCommerce Orders to XML.
|
|
|
74 |
✅ Excellent Support for setting it up!
|
75 |
|
76 |
|
153 |
|
154 |
= Does this plugin export order line item details? =
|
155 |
|
156 |
+
Yes. You can [import order line items](https://www.webtoffee.com/import-line-items-with-product-sku/) or [export order line items](https://www.webtoffee.com/export-order-line-items-separate-columns-using-order-coupon-subscription-import-export-plugin-woocommerce/) details.
|
157 |
|
158 |
= Can I update existing orders using this plugin? =
|
159 |
|
224 |
|
225 |
== Changelog ==
|
226 |
|
227 |
+
= 2.1.1 =
|
228 |
+
* WC 5.7 tested OK
|
229 |
= 2.1.0 =
|
230 |
* Fix:- WC compatibility with shipping phone number
|
231 |
= 2.0.9 =
|
464 |
|
465 |
== Upgrade Notice ==
|
466 |
|
467 |
+
= 2.1.1 =
|
468 |
+
* WC 5.7 tested OK
|
uninstall.php
CHANGED
File without changes
|