I have a magento store with multiple categories. The default number of products shown on each category is 12. For a particular category I want that all its products be shown. What are the different ways of achieving it. Can I do it using custom layout update "Layout Update XML" - if yes what would be the xml?


Try this with layout xml specifique for your category catalog_category_view_id_{{id}}.xml

    <referenceBlock name="product_list_toolbar"  />  
        <block class="Magento\Theme\Block\Html\Pager" name="product_list_toolbar_pager"/>   
            <action method="addPagerLimit"><mode>list</mode><limit>10</limit></action>
| improve this answer | |
  • getting error Please correct the XML data and try again. Element 'referenceBlock': This element is not expected. Expected is one of ( referenceContainer, container, update, move ). Line: 1 – Abid Malik Nov 25 '17 at 8:16
  • <block> <container> before and after attributes <action> <referenceBlock> and <referenceContainer> <move> <remove> <update> <argument> <arguments> – Mohamed El Mrabet Nov 25 '17 at 8:48
  • Can you show me error please? and can you show me all of your layout d'ont forget <page> and <body> ? – Mohamed El Mrabet Nov 25 '17 at 8:51

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.