如何将我的类别页面上的所有产品列出默认值?

有帮助吗?

解决方案

它应该默认显示。检查是否有产品和目录设置,以显示它是否设置为5个产品更改为将显示所有产品的数字。还要检查每页有多少产品,以及导航控制器是否在IE上。下一页菜单。

在主页上您可以添加小部件并将其设置为显示所有产品

其他提示

catalog_category_view.xml

中使用以下代码
<action method="setDefaultGridPerPage">
    <argument name="limit" xsi:type="string">all</argument>
</action>
.

这将默认显示类别页面上的所有产品。

dimple patel的答案是对的,但要更具体,如果您需要在所有类别中显示所有产品并想要做到它的our xml,您应该引用中的块 product_list_toolbar catalog_category_view.xml 这样的:

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

许可以下: CC-BY-SA归因
scroll top