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/30/2024 in Posts

  1. Я знаю що є відповідь від Г, але я вас її не покажу
    1 point
  2. https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=22963&filter_member=agatha65
    1 point
  3. То не лендінг, а просто сторінка із результатами фільтрування - і вони не має індексуватися, і здається там стоять теги, щоб пошукові ці сторінки не додавали в індекс. Якщо ви хочете лендінг - то треба його зробити. Або по одній сторінці, або масове додавання. Почитайте що це і як це https://ocfilter.com/documentation/4.8/#nav-seo-page
    1 point
  4. Более красивый вариант создания отдельной пагинации для каталога, без необходимости заменять код в контроллерах Может поможет решение кому то в будущем Открываем 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.