From d4b412e63f2eeab2b6fd841860abf01a86aadd18 Mon Sep 17 00:00:00 2001 From: dozer111 Date: Fri, 22 Jun 2018 13:53:40 +0300 Subject: [PATCH] починил микродату для продукта --- frontend/controllers/ServiceController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/controllers/ServiceController.php b/frontend/controllers/ServiceController.php index 981df18..3ff540f 100644 --- a/frontend/controllers/ServiceController.php +++ b/frontend/controllers/ServiceController.php @@ -49,9 +49,9 @@ 'offers' => [ '@type'=> 'AggregateOffer', - 'lowPrice'=> "'".min($prices)."'", - 'highPrice'=> "'".max($prices)."'", - 'priceCurrency'=> 'UAH' + 'lowPrice' => min($prices) . ".00", + 'highPrice' => max($prices) . ".00", + 'priceCurrency' => "UAH" ] ] :[ @@ -64,7 +64,7 @@ ] ]; if (count($model->prices) <= 1 && isset($prices)) { - if (!empty($prices)) $layoutMicrodata['offers']['Price'] = "'" . max($prices) . "'"; + if (!empty($prices)) $layoutMicrodata['offers']['Price'] = "'" . max($prices) . ".00'"; } -- libgit2 0.21.4