Can anyone help me how to change number of products per page for a SPECIFIC category. I am on magento 2.3.4 and noticed that Layout Update XML does not exist anymore.
You should be able to use the following question and it's answer to help you out. How to add/update custom layout update on magento 2.3.4
Add your set number of products in
Admin->Store->Configuration->Catalog->Storefront->Products per Page on Grid Allowed Values and
Products per Page on List Allowed Values,
For example, if you want to set 6 for any category add the value like the below screenshot:
Then go to a particular category in which you want to change the number of products per page and add below code in
Design->Layout Update XML
<referenceContainer name="content"> <referenceBlock name="product_list_toolbar"> <action method="setDefaultListPerPage"> <argument name="limit" xsi:type="string">6</argument> </action> <action method="setDefaultGridPerPage"> <argument name="limit" xsi:type="string">6</argument> </action> </referenceBlock> </referenceContainer>
Hope this will work for you.