Skip to content

Commit

Permalink
Merge pull request #6 from nomasi/fix-order-track-bug
Browse files Browse the repository at this point in the history
Fixed order tracking bug
  • Loading branch information
nomasi authored Feb 26, 2019
2 parents 7f51a4c + d505cff commit 9393f85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ To install and take into use the SizeMe for WooCommerce plugin, follow the instr

== Changelog ==

= 2.0.4 =
* Fixed bug in order tracking

= 2.0.3 =
* Added fix for selector change event triggering

= 2.0.2 =
* fixed bug in cart tracking
* Fixed bug in cart tracking

= 2.0.1 =
* added clientKey to sizeme_options
* Added clientKey to sizeme_options

= 2.0.0 =
* Fairly complete rewrite for SizeMe v3.0
Expand Down
7 changes: 4 additions & 3 deletions sizeme-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @wordpress-plugin
* Plugin Name: SizeMe for WooCommerce
* Description: SizeMe is a web store plugin that enables your consumers to input their measurements and get personalised fit recommendations based on actual product data.
* Version: 2.0.3
* Version: 2.0.4
* Author: SizeMe Ltd
* Author URI: https://www.sizeme.com/
* Text Domain: sizeme
Expand Down Expand Up @@ -50,7 +50,7 @@ class WC_SizeMe_for_WooCommerce {
*
* @var string VERSION The plugin version.
*/
const VERSION = '2.0.3';
const VERSION = '2.0.4';

/**
* Minimum WordPress version this plugin works with, used for dependency checks.
Expand Down Expand Up @@ -637,7 +637,8 @@ public function send_order_info($order_id)
);
}

if ( $this->is_service_test() ) $address = self::API_CONTEXT_ADDRESS_TEST . self::API_SEND_ADD_TO_CART;
$address = self::API_CONTEXT_ADDRESS . self::API_SEND_ORDER_INFO;
if ( $this->is_service_test() ) $address = self::API_CONTEXT_ADDRESS_TEST . self::API_SEND_ORDER_INFO;

if ( $this->send( $address, json_encode($arr) ) ) {
update_post_meta( $order_id, 'delivery_order_id', esc_attr( $order_id ) );
Expand Down

0 comments on commit 9393f85

Please sign in to comment.