Тексты товаров в разные ячейки и 404 страница
This commit is contained in:
@@ -106,51 +106,6 @@ class ControllerProductProduct extends Controller {
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($this->request->get['search']) || isset($this->request->get['tag'])) {
|
||||
$url = '';
|
||||
|
||||
if (isset($this->request->get['search'])) {
|
||||
$url .= '&search=' . $this->request->get['search'];
|
||||
}
|
||||
|
||||
if (isset($this->request->get['tag'])) {
|
||||
$url .= '&tag=' . $this->request->get['tag'];
|
||||
}
|
||||
|
||||
if (isset($this->request->get['description'])) {
|
||||
$url .= '&description=' . $this->request->get['description'];
|
||||
}
|
||||
|
||||
if (isset($this->request->get['category_id'])) {
|
||||
$url .= '&category_id=' . $this->request->get['category_id'];
|
||||
}
|
||||
|
||||
if (isset($this->request->get['sub_category'])) {
|
||||
$url .= '&sub_category=' . $this->request->get['sub_category'];
|
||||
}
|
||||
|
||||
if (isset($this->request->get['sort'])) {
|
||||
$url .= '&sort=' . $this->request->get['sort'];
|
||||
}
|
||||
|
||||
if (isset($this->request->get['order'])) {
|
||||
$url .= '&order=' . $this->request->get['order'];
|
||||
}
|
||||
|
||||
if (isset($this->request->get['page'])) {
|
||||
$url .= '&page=' . $this->request->get['page'];
|
||||
}
|
||||
|
||||
if (isset($this->request->get['limit'])) {
|
||||
$url .= '&limit=' . $this->request->get['limit'];
|
||||
}
|
||||
|
||||
$data['breadcrumbs'][] = array(
|
||||
'text' => $this->language->get('text_search'),
|
||||
'href' => $this->url->link('product/search', $url)
|
||||
);
|
||||
}
|
||||
|
||||
if (isset($this->request->get['product_id'])) {
|
||||
$product_id = (int)$this->request->get['product_id'];
|
||||
} else {
|
||||
@@ -257,6 +212,10 @@ class ControllerProductProduct extends Controller {
|
||||
$data['reward'] = $product_info['reward'];
|
||||
$data['points'] = $product_info['points'];
|
||||
$data['description'] = html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8');
|
||||
$data['description_first_rental'] = html_entity_decode($product_info['description_first_rental'], ENT_QUOTES, 'UTF-8');
|
||||
$data['description_second_rental'] = html_entity_decode($product_info['description_second_rental'], ENT_QUOTES, 'UTF-8');
|
||||
$data['description_purchase'] = html_entity_decode($product_info['description_purchase'], ENT_QUOTES, 'UTF-8');
|
||||
$data['description_terms'] = html_entity_decode($product_info['description_terms'], ENT_QUOTES, 'UTF-8');
|
||||
|
||||
if ($product_info['quantity'] <= 0) {
|
||||
$data['stock'] = $product_info['stock_status'];
|
||||
@@ -471,7 +430,7 @@ $data['price_n'] = $product_info['price'];
|
||||
foreach ($tags as $tag) {
|
||||
$data['tags'][] = array(
|
||||
'tag' => trim($tag),
|
||||
'href' => $this->url->link('product/search', 'tag=' . trim($tag))
|
||||
'href' => ''
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user