由于某种原因,我继承了一个完全运行的电子商务(magento),当添加产品时,追加销售和相关产品已经切换。所以在旧主题(现在使用)中,它们在前端代码中被切换,而不是在后端设置中。
结果是,在我的新主题中,所有相关和upsell都在错误的位置。在这里查看新主题的结果:https://skarpe-1172.rask1.raskesider.no/18cm-kokkekniv-neo-kengata-masahiro.html
刀具应相对,珩磨棒(底部)等应在顶部。
我如何改变它们?catalog.xml吗?如果有,怎么做?
增销
<block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
<action method="setColumnCount"><columns>4</columns></action>
<action method="setItemLimit"><type>upsell</type><limit>4</limit>
</action> </block>
与
<reference name="right"> <block type="catalog/product_list_related"
name="catalog.product.related" before="-"
template="catalog/product/list/related.phtml"/> </reference>
您是否尝试过这样用以下
替换代码相关的<block type="catalog/product_list_related"
name="catalog.product.related" before="-"
template="catalog/product/list/related.phtml"/>
增销
<reference name="right">
<block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
<action method="setColumnCount"><columns>4</columns></action>
<action method="setItemLimit"><type>upsell</type><limit>4</limit></action>
</block>
</reference>
如果您有任何疑问请告诉我