I cannot edit my magento theme for now - I'm trying to do this through the back admin. I am also by no means an expert, so please forgive me.

I need one category to have a default grid value of 48 products instead of our set default value of 24. 48 is a value that is allowed in our product grid.

I tried the following code by entering it into the category Design Layout Update XML section, but it is not working.

<referenceContainer name="content"> 
<block class="Magento\Theme\Block\Html\Pager" name="product_list_toolbar_pager"><action method="setDefaultGridPerPage"> 
<argument name="limit" xsi:type="string">48</argument>

How can I go about changing the default value via back admin?

Thanks in advanced!


To set a default grid value of 48 products for one category, you have to set "Products per Page on Grid Allowed Values" configuration in Store > Configuration > Catalog >Catalog > Store Front > Products per Page on Grid Allowed Values add 48. enter image description here You will have to then move to catalog > categories (select the category in which you have to set default grid value to 48) > Design > Layout Update XML add below lines

<referenceBlock name="product_list_toolbar">
    <action method="setDefaultGridPerPage">
        <argument name="limit" xsi:type="string">48</argument>

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.