diff --git a/src/app/frontend/controllers/PageController.php b/src/app/frontend/controllers/PageController.php
index a4ad707..22ce48c 100644
--- a/src/app/frontend/controllers/PageController.php
+++ b/src/app/frontend/controllers/PageController.php
@@ -1030,10 +1030,8 @@
{
$item_id = $this->request->getPost( 'item_id', 'int', '' );
$group_alias = $this->request->getPost( 'group_alias', 'string', '' );
-
$item = $this->models->getItems()->getOneItem( $this->lang_id, $item_id );
$filters = $this->models->getFilters()->getFiltersByItemId( $this->lang_id, $item_id );
-
$colors_info = $this->models->getItems()->getColorsInfoByColorId( $this->lang_id, $item['0']['color_id'] );
$item['0']['color_title'] = NULL;
@@ -1051,11 +1049,10 @@
'
'.$colors_info['0']['color_title'].'
';
}
- $item['0']['explode'] = explode( '/', $item['0']['full_alias'] );
- $item['0']['type_alias'] = $item['0']['explode']['1'];
- $item['0']['subtype_alias'] = $item['0']['explode']['2'];
- unset( $item['0']['explode'] );
-
+ $item['0']['explode'] = explode( '/', $item['0']['full_alias'] );
+ $item['0']['type_alias'] = $item['0']['explode']['1'];
+ $item['0']['subtype_alias'] = $item['0']['explode']['2'];
+ unset( $item['0']['explode'] );
$item['0']['alias'] = $this->url->get([ 'for' => 'item', 'type' => $item['0']['type_alias'], 'subtype' => $item['0']['subtype_alias'], 'group_alias' => $group_alias, 'item_id' => $item_id ]);
$item['0']['filters'] = $filters;
$item['0']['images'] = $this->etc->int2arr( $item['0']['photogallery'] );
diff --git a/src/app/frontend/views/page/changeWithSize.php b/src/app/frontend/views/page/changeWithSize.php
index 9921dea..76f3f19 100644
--- a/src/app/frontend/views/page/changeWithSize.php
+++ b/src/app/frontend/views/page/changeWithSize.php
@@ -9,13 +9,22 @@ if(isset($special_user)) {
$old_price = $data['price'];
$data['price'] = $data['price']*(1-$discount/100);
$data['price'] = number_format($data['price'], 2, '.', ' ');
-
-$data['html'] = '
-
'. $t->_("price") .
- '
' . $old_price . ' грн
-
-
' . $data['price'] . ' грн
-';
+if ($discount == 0) {
+ $data['html'] =
+ '
+
'. $t->_("price") .
+ '
' . $data['price'] . ' грн
+ ';
+}
+else {
+ $data['html'] = '
+
+
'. $t->_("price") .
+ ' ' . $old_price . ' грн
+
+ ' . $data['price'] . ' грн
+ ';
+}
$data['html'] .= '
';
--
libgit2 0.21.4