Commit f5db1e8882e78453fffa046e3273d56fbb9c7950
1 parent
9ffc1f1c
remarketing
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
frontend/views/order/index.php
| ... | ... | @@ -25,8 +25,8 @@ if (count($models) > 1) { |
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | else { |
| 28 | - $this->params['remarketing']['id'] = $models->product_id; | |
| 29 | - $this->params['remarketing']['price'] = $models->price; | |
| 28 | + $this->params['remarketing']['id'] = $models[0]->product_id; | |
| 29 | + $this->params['remarketing']['price'] = $models[0]->price; | |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | ?> | ... | ... |
frontend/views/order/success.php
| ... | ... | @@ -21,8 +21,8 @@ |
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | else { |
| 24 | - $this->params['remarketing']['id'] = $products->product_id; | |
| 25 | - $this->params['remarketing']['price'] = $products->price; | |
| 24 | + $this->params['remarketing']['id'] = $products[0]->product_id; | |
| 25 | + $this->params['remarketing']['price'] = $products[0]->price; | |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | ... | ... |