cancel
Showing results for 
Search instead for 
Did you mean: 

Paging not showing on category view

Paging not showing on category view

I am unable to see paging on my category view products. By default 12 products show and when I add a query string ?p=2 then other page products show.

I have checked the file. app/design/frontend/theme_vendor/theme_name/Magento_Catalog/templates/product/list.phtml

these two methods also exist responsible to print paging

<?= $block->getToolbarHtml() ?>
<?= $block->getAdditionalHtml() ?>

 Admin Panel Setting.qfVTG.png

6 REPLIES 6

Re: Paging not showing on category view

Hello @ishaqdahot 

 

Which Magento version you are currently using?
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Paging not showing on category view

Hello @Sanjay Jethva 

I am using Magento 2.4.1

and Bluesky Armania market theme.

https://mageblueskytech.com/armania/documentation/

Re: Paging not showing on category view

I have resolved the issue partially in my 

/vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/phtml

below condition was not working 

if ($block->getCollection()->getSize()) :

So I replaced it with

if (count($block->getCollection())) :

Now the page looks like this. As you can see showing 0 items in 

Top:

top.png

Bottom of page:

 

bottom.png

Re: Paging not showing on category view

In Magento Open Source 2.4.3 I used below and it worked.

 

<?= $block->getChildBlock('toolbar')->setIsBottom(true)->toHtml() ?>

Re: Paging not showing on category view

File Path: app/design/frontend/Vendor/Theme/Magento_Catalog/templates/product/list.phtml
The original code in the bottom section of the page looked like this:

<?= $block->getToolbarHtml() ?>

but it has since been changed to this in the recent update:

<?= $block->getChildBlock('toolbar')->setIsBottom(true)->toHtml() ?>

On switching the code to the new version, the pagination started showing again in the catalog pages.

Source Reference: https://magento.stackexchange.com/questions/345102/after-upgrading-to-magento-2-4-3-the-pagination-i...

Re: Paging not showing on category view


@ishaqdahot wrote:

I am unable to see paging on my category view products. By default 12 products show and when I add a query string ?p=2 then other page products show.

I have checked the file. app/design/frontend/theme_vendor/theme_name/Magento_Catalog/templates/product/list.phtml

these two methods also exist responsible to print paging on Pet Turf website.

<?= $block->getToolbarHtml() ?>
<?= $block->getAdditionalHtml() ?>

 Admin Panel Setting.qfVTG.png


I also got issue while making in pagination in my Pet Turf website.