通过页面对产品中的新产品进行排序

Sort new products in product via page

当我现在转到产品页面时,旧产品位于顶部,箭头指向下方,但箭头必须指向顶部,以便首先显示新产品。

查看打印截图:https://gyazo.com/712c7cfa33e237cda3ce8c91045e4916

此致, 米歇尔

您可以通过 xml 布局设置默认方向。

在你的local.xml

<layout>
<catalog_category_default>
    <reference name="product_list_toolbar">
        <action method="setDefaultDirection"><string>asc</string></action>
        <action method="setDefaultOrder"><string>name</string></action>
    </reference>
</catalog_category_default>
<catalog_category_layered>
    <reference name="product_list_toolbar">
        <action method="setDefaultDirection"><string>asc</string></action>
        <action method="setDefaultOrder"><string>name</string></action>
    </reference>
</catalog_category_layered>

默认情况下,这会在工具栏上按 ascending 顺序设置箭头方向。 (您也可以设置默认排序顺序,如您在上面的布局中所见)