I'm creating a plugin that will extend the review tab title and content in the frontend. So far I can display some text in the product details page using this in my layout file in app\design\frontend\base\default\layout\my\reviewcontainer.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<layout version="1.0.0">
<catalog_product_view>
<reference name="product.info.additional">
<block type="reviewcontainer/tabs" name="product.info.tabs" as="info_tabs">
<action method="setTemplate">
<template>my/reviewcontainer/tabs.phtml</template>
</action>
</block>
</reference>
</catalog_product_view>
</layout>
Which calls the template app\design\frontend\base\default\template\my\reviewcontainer\tabs.phtml
which basically has and outputs:
<h1 style="color: #e2000a; font-size: 200px">Hey there!</h1>
Just bellow the <div class="product-collateral toggle-content tabs">..</div>
How can I edit this script so that the above template changes the review tab title and content instead?
Best Answer
You can set title of review by
setTitle
function.May there are issue in your code.
Layout code is:
Or try this: