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

rrommka

Newbie
  
  • Posts

    8
  • Joined

  • Last visited

Everything posted by rrommka

  1. Все очень просто! в catalog\controller\product\category.php ищем строчку $this->data['sorts'] = array(); Это сортировки которая есть у вас на сайте! добавляем: $this->data['sorts'][] = array( 'text' => $this->language->get('Популярные!'), 'value' => 'p.viewed-DESC', 'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.viewed&order=DESC' . $url) ); где: 'text' => $this->language->get('Популярные!'), Популярные - можете заменить на любое слово которое вам ближе к душе! В начале этого файла можно выставить сортировку которая будет по умолчанию: $this->load->model('tool/image'); if (isset($this->request->get['sort'])) { $sort = $this->request->get['sort']; } else { $sort = 'p.viewed'; } if (isset($this->request->get['order'])) { $order = $this->request->get['order']; } else { $order = 'DESC'; } тут вы ставите тип сортировки $sort = 'pd.name'; - по Имени $sort = 'p.price'; - по Ценам $sort = 'rating'; - по Рейтингу $sort = 'p.viewed'; - по Просмотрим Направление $order = 'ASC'; - от А до Я (Низкому) $order = 'DESC' - от Я до А (Высокому) Еще одно не мало важно изменение (без которого ничего не будет работать!) Нужно зайти в catalog\model\catalog\product.php ищем строчку: $sort_data = array( 'pd.name', 'p.model', 'p.quantity', 'p.price', 'rating', 'p.sort_order', 'p.date_added', Добавляем: 'p.viewed' (будь внимательный с точками и запятыми!) Должно выглядеть вот так! $sort_data = array( 'pd.name', 'p.model', 'p.quantity', 'p.price', 'rating', 'p.sort_order', 'p.date_added', 'p.viewed' ); :)
  2. C чем связана эта ошибка: PHP Fatal error: Class 'Pagination' not found in /var/www/html/catalog/controller/product/category.php on line 358, referer: http://www.rolik.dp.ua/smartfon-sony-xperia-zr-white.html
  3. Вот сделал все права, но по ходу что то наделал и теперь вот такая ошибка: Warning: Unknown: open_basedir restriction in effect. File(/var/www/html/index.php) is not within the allowed path(s): ( /var/www/html/) in Unknown on line 0 Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0 Fatal error: Unknown: Failed opening required '/var/www/html/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0 Нужен опытный программист чтоб мог все настроить и + установить библиотеке которые нужны для каректной работы сайта.
  4. Мне нужен человек который в этом разбирается, и чтоб он все сделал и работало. Естественно не бесплатно.
  5. Нужно перенести сайт на VPS с хостинга. Большинство проблем возникают изза vqmod, и изза нехватки библиотек .
  6. При переносе сайта на vps очень много ошибок с vqmod, нужна помощь в решении этих проблем. Ошибки: Warning: sha1_file(/var/www/html/catalog/controller/module/isearch.php): failed to open stream: Permission denied in /var/www/html/vqmod/vqmod.php on line 120Warning: file_get_contents(/var/www/html/catalog/controller/module/isearch.php): failed to open stream: Permission denied in/var/www/html/vqmod/vqmod.php on line 121Warning: file_put_contents(/var/www/html/vqmod/vqcache/vq2-catalog_controller_module_isearch.php): failed to open stream: Permission denied in /var/www/html/vqmod/vqmod.php on line 134Warning: require_once(/var/www/html/vqmod/vqcache/vq2-catalog_controller_module_isearch.php): failed to open stream: No such file or directory in /var/www/html/vqmod/vqcache/vq2-system_engine_controller.php on line 37
×
×
  • 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.