Commit 8d322142a6439b5fc9ab7082d20822ea88eaba86

Authored by Alex Savenko
1 parent efaa1df4

remarketing

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
frontend/views/order/success.php
@@ -15,13 +15,13 @@ @@ -15,13 +15,13 @@
15 $this->params['remarketing']['price'] = ''; 15 $this->params['remarketing']['price'] = '';
16 if (count($variants) > 1) { 16 if (count($variants) > 1) {
17 foreach ($variants as $variant) { 17 foreach ($variants as $variant) {
18 - $this->params['remarketing']['id'][] = $variant->product_id;  
19 - $this->params['remarketing']['price'][] = $variant->price; 18 + $this->params['remarketing']['id'][] = $variant['product_id'];
  19 + $this->params['remarketing']['price'][] = $variant['price'];
20 } 20 }
21 } 21 }
22 else { 22 else {
23 - $this->params['remarketing']['id'] = $variants[0]->product_id;  
24 - $this->params['remarketing']['price'] = $variants[0]->price; 23 + $this->params['remarketing']['id'] = $variants[0]['product_id'];
  24 + $this->params['remarketing']['price'] = $variants[0]['price'];
25 } 25 }
26 26
27 27