B
B
Boris Belov2015-10-23 09:49:34
CMS
Boris Belov, 2015-10-23 09:49:34

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
bd66901a06904581828e97ebae8c6a1a.png
After pagination
9001196e88c64636915d370f16d96c45.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Evgrafovich, 2015-10-24
@Tantacula

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.

I
Ilya, 2015-10-23
@znepok

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 question

Ask a Question

731 491 924 answers to any question