Commit d4b412e63f2eeab2b6fd841860abf01a86aadd18

Authored by alex
1 parent 4fcaa96c

починил микродату для продукта

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
frontend/controllers/ServiceController.php
@@ -49,9 +49,9 @@ @@ -49,9 +49,9 @@
49 'offers' => 49 'offers' =>
50 [ 50 [
51 '@type'=> 'AggregateOffer', 51 '@type'=> 'AggregateOffer',
52 - 'lowPrice'=> "'".min($prices)."'",  
53 - 'highPrice'=> "'".max($prices)."'",  
54 - 'priceCurrency'=> 'UAH' 52 + 'lowPrice' => min($prices) . ".00",
  53 + 'highPrice' => max($prices) . ".00",
  54 + 'priceCurrency' => "UAH"
55 ] 55 ]
56 ] 56 ]
57 :[ 57 :[
@@ -64,7 +64,7 @@ @@ -64,7 +64,7 @@
64 ] 64 ]
65 ]; 65 ];
66 if (count($model->prices) <= 1 && isset($prices)) { 66 if (count($model->prices) <= 1 && isset($prices)) {
67 - if (!empty($prices)) $layoutMicrodata['offers']['Price'] = "'" . max($prices) . "'"; 67 + if (!empty($prices)) $layoutMicrodata['offers']['Price'] = "'" . max($prices) . ".00'";
68 } 68 }
69 69
70 70