How to display all products on one page in opencart?

I want to display all products on one page, at the same time pressing one button in the main menu, and also display a category in the main menu ...

Thank you in advance ...!

+4
source share
3 answers

  • :
  • :
  • : : .
    enter image description here
    . . . Opencart.
+7

. , . : , 5 . .

  • (Manifacturer). 1 . " "
  • " " .
  • , . " ", .
  • "" . "" , " " . . , 4/5 .
  • " " . " " " ". , - . ; , 50? 100?
  • , .

!

, css. , , , .

, - .

+3

, -

: ControllerProductCategory

replace

if (isset($this->request->get['limit'])) {
    $limit = $this->request->get['limit'];
} else {
    $limit = $this->config->get('config_product_limit');
}

if (isset($this->request->get['viewall'])) {
            $limit = "";
} else if (isset($this->request->get['limit'])) {
            $limit = $this->config->get('config_product_limit');
} else {
            $limit = $this->config->get('config_product_limit');
}

    if ($category_info) {
                $this->document->setTitle($category_info['meta_title']);
                $this->document->setDescription($category_info['meta_description']);
                $this->document->setKeywords($category_info['meta_keyword']);

if (($category_info) || ($category_id == 0)) {
    if ($category_id == 0) {
                $this->document->setTitle('all products');
                $this->document->setDescription('all products');
                $this->document->setKeywords('all products');
                $this->data['heading_title'] = 'all products';
                $category_info['description'] = '';
                $category_info['image'] = '';
      } else {
                $this->document->setTitle($category_info['name']);
                $this->document->setDescription($category_info['meta_description']);
                $this->document->setKeywords($category_info['meta_keyword']);
                $this->data['heading_title'] = $category_info['name'];
            }

, , . -

https://www.yourwebsite.com/yourCategoryname?viewall=viewall?viewall=viewall

, , .

, .

+2

Source: https://habr.com/ru/post/1660061/


All Articles