AfterShip – WooCommerce Tracking - Version 1.9.25

Version Description

  • Don't import any data to AfterShip tracking custom_fields
Download this release

Release Info

Developer aftership
Plugin Icon 128x128 AfterShip – WooCommerce Tracking
Version 1.9.25
Comparing to
See all releases

Code changes from version 1.9.23 to 1.9.25

.gitignore ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # =============== RubyMine.gitignore
2
+ # =============== PhPStorm.gitignore
3
+ .idea
4
+ dump.rdb
5
+
6
+
7
+ # =============== OSX.gitignore
8
+ .DS_Store
9
+ .AppleDouble
10
+ .LSOverride
11
+
12
+ # Thumbnails
13
+ ._*
14
+
15
+ # =============== # Windows image file caches
16
+ Thumbs.db
17
+ ehthumbs.db
18
+
19
+ # Folder config file
20
+ Desktop.ini
21
+
22
+ # Recycle Bin used on file shares
23
+ $RECYCLE.BIN/
24
+
25
+ # Except the .htpassed
26
+ !.htpasswd
aftership.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: AfterShip - WooCommerce Tracking
4
  Plugin URI: http://aftership.com/
5
  Description: Add tracking number and carrier name to WooCommerce, display tracking info at order history page, auto import tracking numbers to AfterShip.
6
- Version: 1.9.23
7
  Author: AfterShip
8
  Author URI: http://aftership.com
9
 
3
  Plugin Name: AfterShip - WooCommerce Tracking
4
  Plugin URI: http://aftership.com/
5
  Description: Add tracking number and carrier name to WooCommerce, display tracking info at order history page, auto import tracking numbers to AfterShip.
6
+ Version: 1.9.25
7
  Author: AfterShip
8
  Author URI: http://aftership.com
9
 
api/class-aftership-api-orders.php CHANGED
@@ -121,33 +121,6 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
121
 
122
  $order_id = get_order_id($order);
123
 
124
- $meta_keys = array_keys(get_post_meta($order_id));
125
-
126
- // set up the array with keys that is not part of custom field
127
- $filter_list = array("_edit_last","_aftership_tracking_provider_name","_aftership_tracking_required_fields"
128
- ,"_aftership_tracking_number","_aftership_tracking_shipdate","_aftership_tracking_postal"
129
- ,"_aftership_tracking_account","_aftership_tracking_key","_aftership_tracking_destination_country"
130
- ,"_order_key","_customer_user","_payment_method","_payment_method_title","_transaction_id"
131
- ,"_customer_ip_address","_customer_user_agent","_created_via","_date_completed"
132
- ,"_completed_date","_date_paid","_paid_date","_cart_hash","_billing_first_name","_billing_last_name"
133
- ,"_billing_company","_billing_address_1","_billing_address_2","_billing_city","_billing_state",
134
- "_billing_postcode","_billing_country","_billing_email","_billing_phone","_shipping_first_name",
135
- "_shipping_last_name","_shipping_company","_shipping_address_1","_shipping_address_2","_shipping_city",
136
- "_shipping_state","_shipping_postcode","_shipping_country","_order_currency","_cart_discount",
137
- "_cart_discount_tax","_order_shipping","_order_shipping_tax","_order_tax","_order_total","_order_version",
138
- "_prices_include_tax","_billing_address_index","_shipping_address_index","_edit_lock",
139
- "_aftership_tracking_provider", "_download_permissions_granted", "_recorded_sales", "_recorded_coupon_usage_counts"
140
- );
141
-
142
- // set an empty custom_field array
143
- $custom_field = array();
144
-
145
- foreach($meta_keys as $key) {
146
- if (!(in_array($key, $filter_list))) {
147
- $custom_field[$key] = get_post_meta($order_id, $key, true);
148
- }
149
- }
150
-
151
  $order_data = array(
152
  'id' => get_order_id($order),
153
  'order_number' => $order->get_order_number(),
@@ -206,7 +179,7 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
206
  // 'tax_lines' => array(),
207
  // 'fee_lines' => array(),
208
  // 'coupon_lines' => array(),
209
- 'custom_fields' => $custom_field,
210
  'aftership' => array(
211
  'woocommerce' => array(
212
  'trackings' => array(
121
 
122
  $order_id = get_order_id($order);
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  $order_data = array(
125
  'id' => get_order_id($order),
126
  'order_number' => $order->get_order_number(),
179
  // 'tax_lines' => array(),
180
  // 'fee_lines' => array(),
181
  // 'coupon_lines' => array(),
182
+ 'custom_fields' => array(),
183
  'aftership' => array(
184
  'woocommerce' => array(
185
  'trackings' => array(
api/class-aftership-api-v2-orders.php CHANGED
@@ -142,8 +142,8 @@ class AfterShip_API_V2_Orders extends AfterShip_API_Resource
142
  'note' => $order->get_customer_note(),
143
  'locale' => get_locale(),
144
  'metrics' => [
145
- 'placed_at' => $this->server->format_datetime($order->get_date_created()),
146
- 'updated_at' => $this->server->format_datetime($order->get_date_modified()),
147
  'fully_shipped_at' => null,
148
  'expected_earliest_delivery_at' => null,
149
  'expected_last_delivery_at' => null,
142
  'note' => $order->get_customer_note(),
143
  'locale' => get_locale(),
144
  'metrics' => [
145
+ 'placed_at' => $this->server->format_datetime($order->get_date_created()->getTimestamp()),
146
+ 'updated_at' => $this->server->format_datetime($order->get_date_modified()->getTimestamp()),
147
  'fully_shipped_at' => null,
148
  'expected_earliest_delivery_at' => null,
149
  'expected_last_delivery_at' => null,
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.aftership.com/
4
  Tags: shipping, tracking, ups, usps, fedex, dhl, tnt, dpd, post, shipment, woocommerce, tracking number, aftership, package tracking, fulfilment, tracking link, carrier, courier, woo commerce, woocommerce shipment tracking, shipping details plugin, widget, shipstation, track, package
5
  Requires at least: 2.9
6
  Tested up to: 5.2.1
7
- Stable tag: 1.9.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -97,6 +97,12 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
97
 
98
  == Changelog ==
99
 
 
 
 
 
 
 
100
  = 1.9.23 =
101
  * Fix known issue
102
 
4
  Tags: shipping, tracking, ups, usps, fedex, dhl, tnt, dpd, post, shipment, woocommerce, tracking number, aftership, package tracking, fulfilment, tracking link, carrier, courier, woo commerce, woocommerce shipment tracking, shipping details plugin, widget, shipstation, track, package
5
  Requires at least: 2.9
6
  Tested up to: 5.2.1
7
+ Stable tag: 1.9.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 1.9.25 =
101
+ * Don't import any data to AfterShip tracking custom_fields
102
+
103
+ = 1.9.24 =
104
+ * Fix known issue
105
+
106
  = 1.9.23 =
107
  * Fix known issue
108