From 5fff77dc86e110d57bbc306fb3328e90824fc799 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 26 Mar 2021 17:15:21 +0200 Subject: [PATCH] load --- controllers/ProductController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/ProductController.php b/controllers/ProductController.php index b873d3e..8840cf5 100644 --- a/controllers/ProductController.php +++ b/controllers/ProductController.php @@ -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("