Skip to content

Commit

Permalink
Merge pull request #56 from iyzoer/master
Browse files Browse the repository at this point in the history
Fix for php 5.3
  • Loading branch information
gwinn authored Mar 23, 2018
2 parents 580c341 + 6a326e4 commit 8fd4a8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2018-03-22 v.2.1.3
* Исправлена ошибка на php5.3

## 2018-03-21 v.2.1.2
* Добавлена локализация плагина
* Добавлена интеграция с UA
Expand Down
6 changes: 3 additions & 3 deletions woo-retailcrm/retailcrm.php
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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(); ?>,
Expand All @@ -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']; ?>,
Expand Down
2 changes: 1 addition & 1 deletion woo-retailcrm/uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
*
* @link https://wordpress.org/plugins/woo-retailcrm/
* @since 2.1.2
* @since 2.1.3
*
* @package RetailCRM
*/
Expand Down

0 comments on commit 8fd4a8f

Please sign in to comment.