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