Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

vitalix

Newbie
  
  • Posts

    4
  • Joined

  • Last visited

1 Follower

vitalix's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. Сортировка товаров по дате поступления. ocStore v0.2.2 (OpenCart 1.4.9.4) В файле: catalog/controller/product/category.php Найти (78 строка): if (isset($this->request->get['sort'])) { $sort = $this->request->get['sort']; } else { $sort = 'p.sort_order'; } if (isset($this->request->get['order'])) { $order = $this->request->get['order']; } else { $order = 'ASC'; } изменить на это: if (isset($this->request->get['sort'])) { $sort = $this->request->get['sort']; } else { $sort = 'p.date_added'; } if (isset($this->request->get['order'])) { $order = $this->request->get['order']; } else { $order = 'DESC'; } Найти (205 строка): $this->data['sorts'][] = array( 'text' => $this->language->get('text_name_asc'), 'value' => 'pd.name-ASC', 'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $this->request->get['path'] . '&sort=pd.name&order=ASC') добавить код и сохранить в кодировке UTF-8: $this->data['sorts'][] = array( 'text' => 'Дате поступления', 'value' => 'p.date_added-DESC', 'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $this->request->get['path'] . '&sort=p.date_added&order=DESC') ); Добавляем в файл: catalog/model/catalog/product.php (18 строка) вот это: 'p.date_added', должно быть так: $sort_data = array( 'p.date_added', 'pd.name', 'p.sort_order', 'special', 'rating', 'p.price', 'p.model' );
  2. Сортировка товаров по дате поступления. ocStore v0.2.2 (OpenCart 1.4.9.4) В файле: catalog/controller/product/category.php Найти (78 строка): if (isset($this->request->get['sort'])) { $sort = $this->request->get['sort']; } else { $sort = 'p.sort_order'; } if (isset($this->request->get['order'])) { $order = $this->request->get['order']; } else { $order = 'ASC'; } изменить на это: if (isset($this->request->get['sort'])) { $sort = $this->request->get['sort']; } else { $sort = 'p.date_added'; } if (isset($this->request->get['order'])) { $order = $this->request->get['order']; } else { $order = 'DESC'; } Найти (205 строка): $this->data['sorts'][] = array( 'text' => $this->language->get('text_name_asc'), 'value' => 'pd.name-ASC', 'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $this->request->get['path'] . '&sort=pd.name&order=ASC') добавить код и сохранить в кодировке UTF-8: $this->data['sorts'][] = array( 'text' => 'Дате поступления', 'value' => 'p.date_added-DESC', 'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $this->request->get['path'] . '&sort=p.date_added&order=DESC') ); Добавляем в файл: catalog/model/catalog/product.php (18 строка) вот это: 'p.date_added', должно быть так: $sort_data = array( 'p.date_added', 'pd.name', 'p.sort_order', 'special', 'rating', 'p.price', 'p.model' );
  3. Посмотрел ваш магазин... Для создания красивого логотипа используйте программу: AAA Logo
  4. Если не кто не поможет решить это проблему то удалите ссылки на Наши контакты и создайте статью в разделе Информация с названием Наши контакты... В файле: catalog/view/theme/default/template/common/header.tpl Найдите примерно на линии 62: <div class="div3"> И удалите ссылку: <a href="<?php echo str_replace('&', '&', $contact); ?>" style="background-image: url('catalog/view/theme/default/image/contact.png');"><?php echo $text_contact; ?></a> Либо удалите всё оставьте только начало и конец строчки <div class="div3"> </div> Также найдите файлы: catalog/view/theme/default/template/information/sitemap.tpl catalog/view/theme/default/template/module/information.tpl И удалите ссылку: <li><a href="<?php echo str_replace('&', '&', $contact); ?>"><?php echo $text_contact; ?></a></li>
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.