Commit 7507e71ed3a5f8c6528c5d9343d31578e171f3bb
1 parent
95054735
исправление бага на микроразметке
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
frontend/controllers/ServiceController.php
... | ... | @@ -60,9 +60,12 @@ |
60 | 60 | 'offers'=> [ |
61 | 61 | '@type'=> 'Offer', |
62 | 62 | 'priceCurrency'=> 'UAH', |
63 | - 'Price'=> "'".max($prices)."'", | |
63 | + | |
64 | 64 | ] |
65 | 65 | ]; |
66 | + if (count($model->prices) <= 1 && isset($prices)) { | |
67 | + if (!empty($prices)) $layoutMicrodata['offers']['Price'] = "'" . max($prices) . "'"; | |
68 | + } | |
66 | 69 | |
67 | 70 | |
68 | 71 | $microdata=new MicrodataFabric(); | ... | ... |
-
mentioned in commit 95054735483f24257ff1557efc226e2aa9a78c25
-
mentioned in commit 4fcaa96c2ee443fbfc9500d9dd43e6870b209600