D
D
Dmax992021-08-19 13:04:34
opencart
Dmax99, 2021-08-19 13:04:34

How to display in the Article the number of products sorted in a category?

Hello!
Please tell me how you can display in the article the number of products sorted in a category using the OCfilter filter. For example: Number of items with free shipping.
Or is it not possible for free??
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
opencartbot, 2021-08-20
@opencartbot

Do you need to display in the article exactly the number of products that match a certain filter? Then you have to write a SELECT COUNT () selection, call it in the controller and pass the value to the layout.
If you need to display products from a specific category with a specific sorting in an article, then you can look at the Products from category module for OpenCart 3 .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question