2

我尝试将 ext:Customers who bought this product also purchased从默认的左/右列移动到产品下的主列,但我不知道该怎么做。

我尝试将行更改<product_detail_leftposition translate="label"><product_page translate="label">in system.xmlfile 但没有帮助。

有什么建议么?

谢谢你的帮助!

4

1 回答 1

0

您可以通过将其添加到布局 XML 中的产品视图页面部分来执行此操作。在内容引用块内添加块,在底部的某处。

确保它位于手柄内部,因为它定义了产品视图页面上使用的结构。

应用程序/设计/前端/[命名空间]/[主题名]/layout/catalog.xml

<catalog_product_view translate="label">
   ...
    <reference name="content">
       ...
        <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
            <!-- Other blocks etc here.. add at the bottom -->
            <block type="module/block" name="yourblock" as="yourblock"  />
        </block>
    </reference>
 </catalog_product_view>

如果您在此处添加它,这应该会自动为您输出块,尽管这取决于您使用的主题。

如果它没有自动显示,您可能需要在视图中添加一行以显示该块:

app/design/frontend/[命名空间]/[主题名]/template/catalog/product/view.phtml

<?php // use the block name used in the XML config.. ?>
<?php echo $this->getChildHtml('yourblock') ?>
于 2013-02-22T10:36:25.703 回答