Post by talentive » Tue Jun 28, 2022 7:57 am

Hi,

Whenever a category is displayed, the arrangement of items is like this:
1. Products in that category
2. Category Description
3. Pagination if products are more than 100

What I am trying to do is shift this pagination to top, so pagination shows first and then all the products and then description. I have searched for code in category.tpl and product.tpl but till now, have not found anything concrete.

Please help, what to do if I want to shift pagination to top or copy pagination so that it displays on bottom as well as top.

Opencart version 2.2

New member

Posts

Joined
Tue Nov 10, 2020 2:04 am

Post by JAY6390 » Tue Jun 28, 2022 9:28 am

File: catalog/view/theme/default/template/product/category.tpl

Code: Select all

      <div class="row">
        <div class="col-sm-6 text-left"><?php echo $pagination; ?></div>
        <div class="col-sm-6 text-right"><?php echo $results; ?></div>
      </div>

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by JAY6390 » Sat Jul 23, 2022 7:26 pm

I've put the file above and code for what it will look like. This is for version 2.x and lower that don't use the twig template system. For 2.x and above using the twig template system the file location is the same except the extension of the file is .twig instead of .tpl
King981010 wrote:
Sat Jul 23, 2022 6:03 pm
I have the same problem with facing same issue but no response from anyone and couldn't find this topic troubleshooting in search engine.

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 166 guests