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

Leaderboard

Popular Content

Showing content with the highest reputation on 07/15/2025 in Posts

  1. if ($page == 1) { $this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id']), 'canonical'); } elseif ($page == 2) { $this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'] . '&page='. $page), 'canonical'); $this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id']), 'prev'); } else { $this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'] . '&page='. $page), 'canonical'); $this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'] . '&page='. ($page - 1)), 'prev'); } if ($limit && ceil($product_total / $limit) > $page) { $this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'] . '&page='. ($page + 1)), 'next'); } if (($product_total > 0 ) && $limit && ceil($product_total / $limit) < $page) { $this->response->redirect($this->url->link('product/category', 'path=' . $category_info['category_id'], true)); } Якщо $page == 1 (перша сторінка): Додається тільки canonical на першу сторінку без параметру &page=1 Якщо $page == 2: canonical вказує на поточну (з параметром &page=2) prev вказує на першу сторінку (без &page) Якщо $page >= 3: canonical на на поточну (&page=N) prev на попередню (&page=N-1) Додається rel="next" тільки якщо: встановлено $limit (кількість товарів на сторінці), і поточна сторінка не остання. Тобто якщо є наступна сторінка, вказує на неї. Додатково; якщо: В категорії є товари ($product_total > 0), вказано ліміт товарів на сторінку та номер поточної сторінки більший ніж загальна кількість сторінок - тоді редирект на першу сторінку. Не дає плодити переходи на неіснуючі сторінки типу ?page=99, якщо сторінок, припустимо, всього 5. Все у файлі catalog/controller/product/category.php
    2 points
  2. SKU товару не знайдено в магазині. Ви щось наплутали з кодами товарів в самому прайсі схоже
    1 point
  3. удалил модуль и на этом все
    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.