A
A
a_palanski2017-10-23 14:36:19
PHP
a_palanski, 2017-10-23 14:36:19

Opencart2.1 how to display all products of this category in the product card?

Good afternoon, tell me how to display in the product card all products from the category in which this product is located?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2017-10-23
@zoozag

$filter_data = array(
  filter_category_id' => $category_id
);
$results = $this->model_catalog_product->getProducts($filter_data);

And the rest by analogy with the recommended products

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question