moyen rapide pour afficher le catalogue complet dans la grille de navigation en couches frontal

magento.stackexchange https://magento.stackexchange.com/questions/12354

  •  16-10-2019
  •  | 
  •  

Question

Dans la configuration de base / catalog.xml, il y a la poignée 'catalog_category_layered':

<catalog_category_layered translate="label">
    <label>Catalog Category (Anchor)</label>
    <reference name="left">
        <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
    </reference>
    <reference name="content">
        <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
            <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                <!-- <action method="addReviewSummaryTemplate"><type>default</type><template>review/helper/su.phtml</template></action> -->
                <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
                    <block type="page/html_pager" name="product_list_toolbar_pager"/>
                    <!-- The following code shows how to set your own pager increments -->
                    <!--
                        <action method="setDefaultListPerPage"><limit>4</limit></action>
                        <action method="setDefaultGridPerPage"><limit>3</limit></action>
                        <action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
                        <action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
                        <action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
                        <action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
                        <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
                        <action method="addPagerLimit"><mode>grid</mode><limit>3</limit></action>
                        <action method="addPagerLimit"><mode>grid</mode><limit>6</limit></action>
                        <action method="addPagerLimit"><mode>grid</mode><limit>9</limit></action>
                        <action method="addPagerLimit" translate="label"><mode>grid</mode><limit>all</limit><label>All</label></action>
                    -->
                </block>
                <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
                <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
                <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
                <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
                <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
                <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
            </block>
        </block>
    </reference>
</catalog_category_layered>

qui filtre éventuellement la liste des produits par catégorie id. Yat-il un moyen simple d'éviter le filtrage par catégorie, et la liste de tous les produits dans le catalogue du magasin, i.e., une collection de produits sans filtre (sauf, le cas échéant, id magasin)?

Était-ce utile?

La solution

Je dirais simplement ajouter une nouvelle catégorie en tant qu'enfant de votre Store Root Category, puis ajoutez tout à cela.

Si vous puis drapeau cette catégorie comme l'ancre, vous verrez tous les produits.

Je pense que vous aurez alors un problème avec les menus, mais si vous me demandez, il est plus facile de fixer, puis mettre en œuvre votre propre navigation en couches.

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top