Commit a19af87759c6ec3a513d487227fc5694075779fc
Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
src/app/frontend/views/page/item.php
@@ -204,15 +204,11 @@ | @@ -204,15 +204,11 @@ | ||
204 | <li> | 204 | <li> |
205 | <?php | 205 | <?php |
206 | if (isset($discount) && $discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) { | 206 | if (isset($discount) && $discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) { |
207 | - echo ' | ||
208 | - <span itemprop="price">' . number_format($item['price2'], 2, '.', ' ') . '</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span> | ||
209 | - <br/> | ||
210 | - <span>'.round($item['price2']*(1-$discount['discount']/100), 1).'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>'; | 207 | + echo '<p style="text-decoration: line-through;">'.number_format($item['price2'], 2, '.', ' ').'</p><span itemprop="price">'.number_format($item['price2']*(1-$discount['discount']/100), 2, '.', ' ').'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>'; |
211 | } else { | 208 | } else { |
212 | - echo '<span itemprop="price">' . number_format($item['price2'], 2, '.', ' ') . '</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>'; | 209 | + echo '<span itemprop="price">'.number_format($item['price2'], 2, '.', ' ').'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>'; |
213 | } | 210 | } |
214 | ?> | 211 | ?> |
215 | - <span itemprop="price"><?= number_format($item['price2'],2,'.',' ') ?></span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span> | ||
216 | <div style="display: none" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> | 212 | <div style="display: none" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> |
217 | <span itemprop="ratingValue">5</span> | 213 | <span itemprop="ratingValue">5</span> |
218 | <span itemprop="reviewCount">31</span> | 214 | <span itemprop="reviewCount">31</span> |