add content other than attribute information under “Additional information” in magento
-
12-12-2019 - |
Question
we can see "Additional information " tab in magento product view page.
there we can list all attributes.
I want to display some contents under "Additional information " tab....
means
Main information
attribute label 1 : attribute value
Sub - information
attribute label 2 : atribute value.
please let me know if you need any clarifications.
thanks in advance.
Solution
You could customize the template catalog/product/view/attributes.phtml
. Copy it to your theme from base/default
if it isn't there yet and include what you need.
For better maintainability, I'd recommend to just add $this->getChildHtml('my_child_alias')
to the template and define child blocks in the layout (i.e. layout/local.xml
of your theme:
<reference name="product.attributes">
<block type="core/template" name="my.custom.product.block" as="my_child_alias" template="my/custom/template.phtml" />
</reference>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange