Skip to content

Commit 3eee6ea

Browse files
DavidLambauerSergey Shvets
authored andcommitted
Variable $address is not used
The Variable $address is not used anywhere else in this method. Due to that, the conditional statement has no effect on the code and can be removed.
1 parent c86d777 commit 3eee6ea

File tree

1 file changed

+0
-6
lines changed
  • app/code/Magento/GoogleAnalytics/Block

1 file changed

+0
-6
lines changed

app/code/Magento/GoogleAnalytics/Block/Ga.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,6 @@ public function getOrdersTrackingCode()
106106

107107
$result[] = "ga('require', 'ec', 'ec.js');";
108108
foreach ($collection as $order) {
109-
if ($order->getIsVirtual()) {
110-
$address = $order->getBillingAddress();
111-
} else {
112-
$address = $order->getShippingAddress();
113-
}
114-
115109
foreach ($order->getAllVisibleItems() as $item) {
116110
$result[] = sprintf(
117111
"ga('ec:addProduct', {

0 commit comments

Comments
 (0)