From fe4cff5c0e4bffbceee1e504b9cafc4ef882068b Mon Sep 17 00:00:00 2001 From: Karl Clement Date: Fri, 21 Feb 2014 14:48:23 -0500 Subject: [PATCH] Fixed transaction shipping issue --- src/SlmGoogleAnalytics/View/Helper/Script/Analyticsjs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SlmGoogleAnalytics/View/Helper/Script/Analyticsjs.php b/src/SlmGoogleAnalytics/View/Helper/Script/Analyticsjs.php index b95625e..5feb086 100644 --- a/src/SlmGoogleAnalytics/View/Helper/Script/Analyticsjs.php +++ b/src/SlmGoogleAnalytics/View/Helper/Script/Analyticsjs.php @@ -279,7 +279,7 @@ protected function prepareTransaction(Transaction $transaction) $transactionParams['revenue'] = $revenue; } - $shipping = $transaction->getItems(); + $shipping = $transaction->getShipping(); if ($shipping !== null) { $transactionParams['shipping'] = $shipping; }