0

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?

3

1 Answer 1

0

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>
        </block>
    </referenceBlock>
4
  • 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
    Commented Nov 25, 2017 at 8:16
  • <block> <container> before and after attributes <action> <referenceBlock> and <referenceContainer> <move> <remove> <update> <argument> <arguments> Commented Nov 25, 2017 at 8:48
  • Can you show me error please? and can you show me all of your layout d'ont forget <page> and <body> ? Commented Nov 25, 2017 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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