1
0
mirror of synced 2025-01-18 17:01:41 +03:00

Merge pull request #56 from iyzoer/master

Fix for php 5.3
This commit is contained in:
Alex Lushpai 2018-03-23 13:28:54 +03:00 committed by GitHub
commit 8fd4a8fe35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,6 @@
## 2018-03-22 v.2.1.3
* Исправлена ошибка на php5.3
## 2018-03-21 v.2.1.2
* Добавлена локализация плагина
* Добавлена интеграция с UA

View File

@ -1,6 +1,6 @@
<?php
/**
* Version: 2.1.2
* Version: 2.1.3
* Plugin Name: WooCommerce RetailCRM
* Plugin URI: https://wordpress.org/plugins/woo-retailcrm/
* Description: Integration plugin for WooCommerce & RetailCRM
@ -414,7 +414,7 @@ function send_analytics() {
<script type="text/javascript">
ga('require', 'ecommerce', 'ecommerce.js');
ga('ecommerce:addTransaction', {
'id': <?php echo $order->get_data()['id']; ?>,
'id': <?php echo $order->get_id(); ?>,
'affiliation': '<?php echo $domain; ?>',
'revenue': <?php echo $order->get_total(); ?>,
'shipping': <?php echo $order->get_total_tax(); ?>,
@ -423,7 +423,7 @@ function send_analytics() {
<?php
foreach ($order_items as $item) {?>
ga('ecommerce:addItem', {
'id': <?php echo $order->get_data()['id']; ?>,
'id': <?php echo $order->get_id(); ?>,
'sku': <?php echo $item['id']; ?>,
'name': '<?php echo $item['name']; ?>',
'price': <?php echo $item['price']; ?>,

View File

@ -15,7 +15,7 @@
*
*
* @link https://wordpress.org/plugins/woo-retailcrm/
* @since 2.1.2
* @since 2.1.3
*
* @package RetailCRM
*/