Magento的:合并产品说明和附加信息标签 [英] Magento: Merge Product Description and Addition Information Tab
问题描述
我使用的现代主题,所有分离到的信息标签。
我要合并一些标签为游客恨点击。
花了几个小时寻找,但不能罚款一个实际工作。
下面的例子是什么,我想实现的。
http://www.teasta.com/巧克力薄荷博士茶,草本茶4盎司-tin.html
您可以看到描述上方还显示附加信息(属性)
我如何做到这一点在Magento 1.7.0?
感谢。
有关删除附加信息标签注释以下从的catalog.xml code
&lt;作用的方法=addTab翻译=标题模块=目录&GT;&LT;别名&GT;附加的LT; /别名&GT;&LT;标题&GT;另外Information</title><block>catalog/product_view_attributes</block><template>catalog/product/view/attributes.phtml</template></action>
有关显示在产品说明标签附加信息粘贴按照结果code
目录/产品/浏览/ description.phtml文件。
&LT; PHP的echo $这个 - &GT; getLayout() - GT; createBlock('目录/ product_view_attributes','',阵列('模板'=&GT;'目录/产品/浏览/ attributes.phtml')) - &GT; toHtml(); ?&GT;
祝您好运!
I am using Modern theme which separates all information into tabs.
I want to merge some of the tabs as visitors hate clicking.
Spent hours searching but can't fine one that actually works.
Here is example of what I want to achieve.
http://www.teasta.com/chocolate-mint-rooibos-herbal-tea-4oz-tin.html
You can see description appears just above the Additional information (attributes)
How do I do this in Magento 1.7.0?
Thanks.
For Remove Additional Information Tab comment following code from catalog.xml
<action method="addTab" translate="title" module="catalog"><alias>additional</alias><title>Additional Information</title><block>catalog/product_view_attributes</block><template>catalog/product/view/attributes.phtml</template></action>
For display Additional Information in Product Description Tab paste following code in
"catalog/product/view/description.phtml" file.
<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes', '', array('template'=> 'catalog/product/view/attributes.phtml'))->toHtml(); ?>
Best Luck !!
这篇关于Magento的:合并产品说明和附加信息标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!