Commit 6e5f27b890cd3c82a16e1c7ef10f497b882ff9b0

Authored by Alex Savenko
1 parent bf4479ad

common

Showing 1 changed file with 4 additions and 5 deletions   Show diff stats
src/app/frontend/views/partial/item_group.php
... ... @@ -37,17 +37,16 @@
37 37 // скидка
38 38 if (!empty($discount)) {
39 39 if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) {
40   - echo '<span style="text-decoration: line-through;"><span>'.round($i['price'], 2).'</span></span> грн<br/>';
41   - echo '<span>'.round($i['price']*(1-$discount['discount']/100), 2).'</span> грн';
  40 + echo '<span style="text-decoration: line-through;"><span>'.round($i['price'], 1).'</span></span> грн<br/>';
  41 + echo '<span>'.round($i['price']*(1-$discount['discount']/100), 1).'</span> грн';
42 42 }
43 43 else {
44   - echo '<span>'.round($i['price'], 2).'</span> грн';
  44 + echo '<span>'.round($i['price'], 1).'</span>12 грн';
45 45 }
46 46 }
47 47 else {
48   - echo '<span>'.round($i['price'], 2).'</span> грн';
  48 + echo '<span>'.round($i['price'], 1).'</span>3 грн';
49 49 }
50   - echo var_dump($discount);
51 50 ?>
52 51 </div>
53 52 <div class="one_item_buttons">
... ...