Commit 6b2fc3db459cd94225f9ebcaa42e37e66194f922
Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena
Showing
2 changed files
with
10 additions
and
3 deletions
Show diff stats
src/app/frontend/controllers/PageController.php
| @@ -799,7 +799,6 @@ | @@ -799,7 +799,6 @@ | ||
| 799 | if( !empty( $type_child ) ) | 799 | if( !empty( $type_child ) ) |
| 800 | { | 800 | { |
| 801 | $type_alias = $type.'--'.$type_child; | 801 | $type_alias = $type.'--'.$type_child; |
| 802 | - | ||
| 803 | } | 802 | } |
| 804 | else | 803 | else |
| 805 | { | 804 | { |
| @@ -883,7 +882,7 @@ | @@ -883,7 +882,7 @@ | ||
| 883 | $news[$k]['link'] = $this->url->get(['for' => 'one_tips', 'tips_id' => $n['id'], 'tips_alias' => $n['alias']]); | 882 | $news[$k]['link'] = $this->url->get(['for' => 'one_tips', 'tips_id' => $n['id'], 'tips_alias' => $n['alias']]); |
| 884 | } | 883 | } |
| 885 | 884 | ||
| 886 | - // get popular items_groups | 885 | + // get popular items_groups |
| 887 | // | 886 | // |
| 888 | // $popular_groups = $this->models->getItems()->getPopularItems($this->lang_id); | 887 | // $popular_groups = $this->models->getItems()->getPopularItems($this->lang_id); |
| 889 | // $popular_groups = $this->common->explodeAlias($popular_groups); | 888 | // $popular_groups = $this->common->explodeAlias($popular_groups); |
| @@ -1470,15 +1469,19 @@ | @@ -1470,15 +1469,19 @@ | ||
| 1470 | public function aboutuaAction(){ | 1469 | public function aboutuaAction(){ |
| 1471 | $this->view->setMainView('about_ukr'); | 1470 | $this->view->setMainView('about_ukr'); |
| 1472 | } | 1471 | } |
| 1472 | + | ||
| 1473 | public function aboutengAction(){ | 1473 | public function aboutengAction(){ |
| 1474 | $this->view->setMainView('about_eng'); | 1474 | $this->view->setMainView('about_eng'); |
| 1475 | } | 1475 | } |
| 1476 | + | ||
| 1476 | public function please_returnAction(){ | 1477 | public function please_returnAction(){ |
| 1477 | $this->view->setMainView('please_return'); | 1478 | $this->view->setMainView('please_return'); |
| 1478 | } | 1479 | } |
| 1479 | - public function basket_uaAction(){ | 1480 | + |
| 1481 | + public function basket_uaAction(){ | ||
| 1480 | $this->view->setMainView('basket_ua'); | 1482 | $this->view->setMainView('basket_ua'); |
| 1481 | } | 1483 | } |
| 1484 | + | ||
| 1482 | public function basket_ruAction(){ | 1485 | public function basket_ruAction(){ |
| 1483 | $this->view->setMainView('basket_ru'); | 1486 | $this->view->setMainView('basket_ru'); |
| 1484 | } | 1487 | } |
src/app/frontend/views/partial/item_group.php
| @@ -39,11 +39,15 @@ | @@ -39,11 +39,15 @@ | ||
| 39 | echo '<span style="text-decoration: line-through;"><span>'.$i['price'].'</span></span> грн<br/>'; | 39 | echo '<span style="text-decoration: line-through;"><span>'.$i['price'].'</span></span> грн<br/>'; |
| 40 | echo '<span>'.round($i['price']*(1-$discount['discount']/100), 1).'</span> грн'; | 40 | echo '<span>'.round($i['price']*(1-$discount['discount']/100), 1).'</span> грн'; |
| 41 | } | 41 | } |
| 42 | + else { | ||
| 43 | + echo '<span>'.$i['price'].'</span> грн'; | ||
| 44 | + } | ||
| 42 | } | 45 | } |
| 43 | else { | 46 | else { |
| 44 | echo '<span>'.$i['price'].'</span> грн'; | 47 | echo '<span>'.$i['price'].'</span> грн'; |
| 45 | } | 48 | } |
| 46 | ?> | 49 | ?> |
| 50 | + <span><?= $i['price']; ?></span> грн | ||
| 47 | </div> | 51 | </div> |
| 48 | <div class="one_item_buttons"> | 52 | <div class="one_item_buttons"> |
| 49 | <a href="<?= $this->seoUrl->setUrl($i['alias']) ?>" title="" class="btn grey"><?= $t->_("details") ?></a> | 53 | <a href="<?= $this->seoUrl->setUrl($i['alias']) ?>" title="" class="btn grey"><?= $t->_("details") ?></a> |