Commit 74b13a7aec8c03d56dea94704ecacc166e1c598c
1 parent
1de7deef
common
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/app/frontend/views/page/item.php
... | ... | @@ -210,14 +210,14 @@ |
210 | 210 | // скидка |
211 | 211 | if (!empty($discount)) { |
212 | 212 | if (isset($discount) && $discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) { |
213 | - echo '<span itemprop="price">'.number_format($item['price2']*(1-$discount['discount']/100), 2, '.', ' ').'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>'; | |
213 | + echo '<span itemprop="price">'.round($item['price2']*(1-$discount['discount']/100), 2).'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>'; | |
214 | 214 | } |
215 | 215 | else { |
216 | - echo '<span itemprop="price">'.number_format($item['price2'], 2, '.', ' ').'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>'; | |
216 | + echo '<span itemprop="price">'.round($item['price2'], 2).'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>'; | |
217 | 217 | } |
218 | 218 | } |
219 | 219 | else { |
220 | - echo '<span itemprop="price">'.number_format($item['price2'], 2, '.', ' ').'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>'; | |
220 | + echo '<span itemprop="price">'.round($item['price2'], 2).'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>'; | |
221 | 221 | } |
222 | 222 | ?> |
223 | 223 | <div style="display: none" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> | ... | ... |