Commit a9a77ea3be7a5cb32b8b70e59432830fe948805c
1 parent
8d322142
remarketing
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
frontend/views/order/index.php
@@ -23,10 +23,12 @@ if (count($models) > 1) { | @@ -23,10 +23,12 @@ if (count($models) > 1) { | ||
23 | $this->params['remarketing']['id'][] = $model->product_id; | 23 | $this->params['remarketing']['id'][] = $model->product_id; |
24 | $this->params['remarketing']['price'][] = $model->price; | 24 | $this->params['remarketing']['price'][] = $model->price; |
25 | } | 25 | } |
26 | -} | ||
27 | -else { | 26 | +} elseif(!empty($models)) { |
28 | $this->params['remarketing']['id'] = $models[0]->product_id; | 27 | $this->params['remarketing']['id'] = $models[0]->product_id; |
29 | $this->params['remarketing']['price'] = $models[0]->price; | 28 | $this->params['remarketing']['price'] = $models[0]->price; |
29 | +} else { | ||
30 | + $this->params['remarketing']['id'] = ''; | ||
31 | + $this->params['remarketing']['price'] = ''; | ||
30 | } | 32 | } |
31 | 33 | ||
32 | ?> | 34 | ?> |