7

I am trying to change per page option in magento 2 on product listing page

  • Currently its 9, 15, 30 by default in toolbar

  • I want to change it to 12, 24, 48, 96 etc

Any help will be appreciated

  • In magento 2 its changes from less file(css). admin option is not available. – Yogesh Oct 23 '17 at 9:54
  • could you guide me , where I can find this in admin , I am looking from half an hour and couldn't find it – user56319 Oct 23 '17 at 9:54
  • @Yogesh , how can I achieve this please help – user56319 Oct 23 '17 at 9:55
  • Please refer this question magento.stackexchange.com/questions/117311/… – Yogesh Oct 23 '17 at 9:56
  • you took the quest in wrong way @yogesh , in above link it about product per row not per page .. I already seen that – user56319 Oct 23 '17 at 9:58
12

Go to admin Store > Configuration > Catalog > Storefront

Now there are two things

  • Products per Page on Grid Allowed Values

    Enter your desired no here with comma like 12,24,48,96

  • Products per Page on Grid Default Value

    Value you enter here must be defined in Allowed Values.

    like you can enter from these values only 12,24,48,96.

See how it looks after changing

enter image description here

Clear your cache and it should work smoothly

  • 1
    is it must to show 12 products in default grid value or I can use 9 instead ? – user56319 Oct 23 '17 at 10:14
  • 2
    yes, value should from allowed values only – Manoj Deswal Oct 23 '17 at 10:15
  • 1
    NOTE: not all themes support this behavior (like some custom ones), although a majority of the commercial themes do. – Phil M Oct 23 '17 at 17:50
  • @ManojDeswal, i want to set for specific category like 12 products in a grid so what should i do for that ? – Sarfaraj Sipai Dec 12 '17 at 10:21
  • @ManojDeswal, let me send you code for that. – Sarfaraj Sipai Dec 12 '17 at 11:06
2

you can change in admin Store >> Configuration >> Catalog >> Catalog >> Frontend TAB

2

You can change it via admin panel in section Stores -> Configuration -> Catalog -> Catalog.

You are interested in the fields Products per Page on Grid Allowed Values and Products per Page on List Allowed Values.

2

For grid view:

  • Go to Stores > Configuration > Catalog > Catalog > Storefront.
  • Change value of Products per Page on Grid Allowed Values.
  • Save Configuration and flush cache.

Please check the screenshot for reference.

Store Front Section

In a similar way, you can change for list view also.

Note: You also need to make sure that the value of Products per Page on Grid Default Value should contain a value from the values of Products per Page on Grid Allowed Values only.

Note: Flush Magento Cache before checking the frontend.

Please let me know if you find any problem.

  • i set 12,24,36, but still its loading all products on list page – jafar pinjar Jan 24 at 10:27
2

You can change 9, 15, 30 by default in toolbar in product listing page.

Go To Your Magento admin Panel : in Store->Configuration->Catalog->Catalog->Store Front

Here You Can Find Two Settings,

Products per Page on Grid Allowed Values

Products per Page on List Allowed Values

Where U Can Change Limits Accordingly By Giving Appropiate Values Seperated By ,(Comma).

2

You can change it from Admin >> STORES >> Configuration >> Catalog >> Storefront >> Products per Page on Grid Allowed Values

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy