我在 magento 中有 2 列左侧边栏主题。我已经创建了 3 个静态块。现在我想在所有产品列表之后和页脚之前显示这些块。我能怎么做 ?
我已经尝试过了,但是这些块与新产品混在一起了。
我在 magento 中有 2 列左侧边栏主题。我已经创建了 3 个静态块。现在我想在所有产品列表之后和页脚之前显示这些块。我能怎么做 ?
我已经尝试过了,但是这些块与新产品混在一起了。
您对创建扩展程序和广告您的自定义代码有多熟悉?如果我理解正确,您想在页脚之前但在产品列表之后显示 3 个不同的静态块,对吗?在主列中。
如果我只需要为产品列表添加静态内容,这就是我所做的。
<!-- Catalog Category (Anchor) -->
<catalog_category_layered>
<reference name="content">
<block type="cms/block" name="cms_footer_links" after="category.products">
<action method="setBlockId"><block_id>static_block_1_identifier</block_id></action>
</block>
<!-- Add the same for the rest of the other static blocks 2 and 3 -->
</reference>
</catalog_category_layered>
将相同的代码添加到 N-Anchor 显示模式
<!-- Catalog Category (Non-Anchor) -->
<catalog_category_default>
<reference name="content">
<block type="cms/block" name="cms_footer_links" after="category.products">
<!-- The content of this block is taken from the database by its block_id. You can manage it in admin CMS -> Static Blocks -->
<action method="setBlockId"><block_id>static_block_1_identifier</block_id></action>
<!-- Add the same for the rest of the other static blocks 2 and 3 -->
</block>
</reference>
</catalog_category_default>
我没有测试代码,但我认为应该可以工作,如果您对代码有任何问题,请告诉我,我们可以审查。