Skip to content

Commit

Permalink
load
Browse files Browse the repository at this point in the history
  • Loading branch information
andrtechno committed Mar 26, 2021
1 parent 57ed0a9 commit 5fff77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function actionView($slug, $id)

if (Yii::$app->settings->get('seo', 'google_tag_manager')) {
$dataLayer['ecomm_pagetype'] = 'offerdetail';
$dataLayer['ecomm_totalvalue'] = $this->dataModel->getFrontPrice();
$dataLayer['ecomm_totalvalue'] = (string) $this->dataModel->getFrontPrice();
$dataLayer['ecomm_prodid'] = $id;
$dataLayer = json_encode($dataLayer);
$this->view->registerJs("
Expand Down

0 comments on commit 5fff77d

Please sign in to comment.