From 6a326e471fe6b5d6d34405e5411db9e74ebf5ef4 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Thu, 22 Mar 2018 16:53:15 +0300 Subject: [PATCH] Fix for php 5.3 --- CHANGELOG.md | 3 +++ woo-retailcrm/retailcrm.php | 6 +++--- woo-retailcrm/uninstall.php | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c94b27eb..7d82f9bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2018-03-22 v.2.1.3 +* Исправлена ошибка на php5.3 + ## 2018-03-21 v.2.1.2 * Добавлена локализация плагина * Добавлена интеграция с UA diff --git a/woo-retailcrm/retailcrm.php b/woo-retailcrm/retailcrm.php index 8db7d097..0e09d924 100644 --- a/woo-retailcrm/retailcrm.php +++ b/woo-retailcrm/retailcrm.php @@ -1,6 +1,6 @@ ga('require', 'ecommerce', 'ecommerce.js'); ga('ecommerce:addTransaction', { - 'id': get_data()['id']; ?>, + 'id': get_id(); ?>, 'affiliation': '', 'revenue': get_total(); ?>, 'shipping': get_total_tax(); ?>, @@ -423,7 +423,7 @@ function send_analytics() { ga('ecommerce:addItem', { - 'id': get_data()['id']; ?>, + 'id': get_id(); ?>, 'sku': , 'name': '', 'price': , diff --git a/woo-retailcrm/uninstall.php b/woo-retailcrm/uninstall.php index e6ff9f2b..c1ed9db6 100644 --- a/woo-retailcrm/uninstall.php +++ b/woo-retailcrm/uninstall.php @@ -15,7 +15,7 @@ * * * @link https://wordpress.org/plugins/woo-retailcrm/ - * @since 2.1.2 + * @since 2.1.3 * * @package RetailCRM */