From d505cff08954ba627b916dcdfae3ba4d59cf9e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20K=C3=B6n=C3=B6nen?= Date: Tue, 26 Feb 2019 09:45:49 +0200 Subject: [PATCH] Fixed order tracking bug --- readme.txt | 10 ++++++++-- sizeme-for-woocommerce.php | 7 ++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/readme.txt b/readme.txt index af31e79..37ea54c 100644 --- a/readme.txt +++ b/readme.txt @@ -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 diff --git a/sizeme-for-woocommerce.php b/sizeme-for-woocommerce.php index eb73b19..be9d84b 100644 --- a/sizeme-for-woocommerce.php +++ b/sizeme-for-woocommerce.php @@ -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 @@ -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. @@ -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 ) );