From 8cfd1b8ad4a84e0d70f5a40d0c96e530671406ba Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 5 Dec 2016 16:53:12 +0200 Subject: [PATCH] remarketing --- frontend/views/catalog/product.php | 4 ++++ frontend/views/layouts/main.php | 25 ++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 59b2bb3..163a40d 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -38,6 +38,10 @@ 'url' => ['catalog/category', 'category' => $category, 'filters' => ['brands' => [$product->brand->alias]]], ]; $this->params[ 'breadcrumbs' ][] = $product->name . ' #' . $product->variant->sku; + + $this->params['remarketing']['type'] = 'offerdetail'; + $this->params['remarketing']['id'] = $product->product_id; + $this->params['remarketing']['price'] = $product->getPrice(); ?>
diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 68347df..e738bc1 100755 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -552,7 +552,30 @@ 'models' => [], ]) ?>
- + params['remarketing'])) { + echo ' + + '; + } +// else { +// echo ' +// +// '; +// } + ?> endBody() ?> -- libgit2 0.21.4