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

Leaderboard

Popular Content

Showing content with the highest reputation on 10/08/2023 in Posts

  1. Удалить СДЭК, Почту россии и покинуть страну 404
    2 points
  2. admin/view/stylesheet/stylesheet.css a[href="#tab-history"], a[href="#tab-additional"], #history { display: none; } как-то так
    1 point
  3. https://support.ocdemo.eu/ Ту на форумі в темі модуля їх відповідей немає. Хотя цікаво вроді у вас OcStore 2.3, то який VQmod, ну то таке. 1) Зробіть налагодження коду (debbugging) перед тим рядком з if (на 20 рядку) пройдіться var_dump(), можливо ви який заборонений символ в налаштуваннях використали <?php var_dump($this->request->get[$this->config->get('mfilter_url_param')?$this->config->get('mfilter_url_param'):'mfp']); var_dump($this->request->post[$this->config->get('mfilter_url_param')?$this->config->get('mfilter_url_param'):'mfp']); var_dump($this->config->get('mega_filter_settings')); if ( isset($this->request->get[$this->config->get('mfilter_url_param')?$this->config->get('mfilter_url_param'):'mfp']) || isset($this->request->post[$this->config->get('mfilter_url_param')?$this->config->get('mfilter_url_param'):'mfp']) || ( NULL != ( $mfSettings = $this->config->get('mega_filter_settings') ) && ! empty( $mfSettings['in_stock_default_selected'] ) ) ) {
    1 point
  4. /catalog/view/theme/(моя тема)/template/common/cart.twig - тут дивіться
    1 point
  5. Дефолтный очень плох можете поискать вот здесь бесплатные решения https://www.opencart.com/index.php?route=marketplace/extension&filter_download_id=49&filter_search=Filter&filter_license=0
    1 point
  6. Более красивый вариант создания отдельной пагинации для каталога, без необходимости заменять код в контроллерах Может поможет решение кому то в будущем Открываем config.php в корне магазина Добавляем в конец файла: // Pagination define('REPLACE_PAGINATION', true); Открываем файл /system/startup.php Находим: function library($class) { $file = DIR_SYSTEM . 'library/' . str_replace('\\', '/', strtolower($class)) . '.php'; if (is_file($file)) { include_once(modification($file)); return true; } else { return false; } } Меняем на: function library($class) { if(defined('REPLACE_PAGINATION') && $class == 'Pagination'){ $file = DIR_SYSTEM . 'library/' . str_replace('\\', '/', strtolower($class)) . '_catalog.php'; } else { $file = DIR_SYSTEM . 'library/' . str_replace('\\', '/', strtolower($class)) . '.php'; } if (is_file($file)) { include_once(modification($file)); return true; } else { return false; } } Копируем system/library/pagination.php и переименовываем в pagination_catalog.php Далее вносим любые нужные правки в созданном файле и они будут отображаться только во фронте, админка останется с дефолтной пагинацией П.С. Тестировалось на OC 2.3, решение от beeboosters подойдет для прошлых версий, в которых еще не добавили автозагрузчик. Можно его также реализовать просто заменив подключение pagination.php на pagination_catalog.php по значению константы REPLACE_PAGINATION
    1 point
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.