Commit 9d77531c2ce6538ef9a5080dcae95a8bb95bf682

Authored by Alex Savenko
2 parents d545914c 6a33d722

Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/app/frontend/views/page/item.php
... ... @@ -204,7 +204,7 @@
204 204 <li>
205 205 <?php
206 206 if (isset($discount) && $discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) {
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>';
  207 + echo '<span style="text-decoration: line-through;">'.number_format($item['price2'], 2, '.', ' ').'</span><span itemprop="price">'.number_format($item['price2']*(1-$discount['discount']/100), 2, '.', ' ').'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>';
208 208 } else {
209 209 echo '<span itemprop="price">'.number_format($item['price2'], 2, '.', ' ').'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>';
210 210 }
... ...