I want to disable pagination and per page product which display on category page on some condition i.e. if I set cookies than on category page I want to disable pagination from category page otherwise it will show.
Thanks in advance for your help.
magento2.2.2paginationproduct-list
I want to disable pagination and per page product which display on category page on some condition i.e. if I set cookies than on category page I want to disable pagination from category page otherwise it will show.
Thanks in advance for your help.
Best Answer
You need to override Magento/Catalog/view/frontend/templates/product/list.phtml using your custom module.
in that file magento display toolbar using below code
do your stuff over there.