Answer the question
In order to leave comments, you need to log in
Where is the output of goods after pagination edited in OpenCart?
Good morning.
Tell me where in OpenCart the output of goods after pagination is edited?
And that is, for example , a site , set the list mode to display products. I made it so that when displaying products BEFORE pagination, the description field takes 300 characters.
But when you click on the number 2 (in pagination) and you get to the second page, the product has description 200 again.
Just tell me in which file to edit the output of products after pagination?
----
Before pagination
After pagination
Answer the question
In order to leave comments, you need to log in
Perhaps the fact is that list and grid are processed in default templates not in layout, but through a jquery script. This is an unfortunate moment in opencart, and the default grid/list script used to spoil the layout for me. Look at the scripts on the category page, the line may be cut off incorrectly there.
The Description limit is set through the system settings: System -> Settings -> Options -> Number of characters.
After pagination, a request is made to the ProductCategory controller (/catalog/controller/product/category.php). In this controller, the next portion of the goods is prepared, including the Description being trimmed to the specified number of characters:
...
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8' )), 0, $this->config->get('config_product_description_length') ) . '..',
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question