Commit 2d5eeafc147d2f67ec78de4e1d42232f65ec6549

Authored by Alex Savenko
2 parents 9d77531c 08dc4b03

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

Showing 1 changed file with 1 additions and 7 deletions   Show diff stats
src/app/frontend/views/page/item.php
... ... @@ -202,13 +202,7 @@
202 202 <div class="one_item_price float" itemprop="offers" itemscope itemtype="http://schema.org/Offer" ><?= $t->_("price")?>
203 203 <ul>
204 204 <li>
205   - <?php
206   - if (isset($discount) && $discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) {
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   - } else {
209   - echo '<span itemprop="price">'.number_format($item['price2'], 2, '.', ' ').'</span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>';
210   - }
211   - ?>
  205 + <span itemprop="price"><?= number_format($item['price2'], 2, '.', ' '); ?></span> грн<span style="display:none;" itemprop="priceCurrency">UAH</span>
212 206 <div style="display: none" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
213 207 <span itemprop="ratingValue">5</span>
214 208 <span itemprop="reviewCount">31</span>
... ...