add tabs to prodcut page?

how do I add tabs to the product page? I see there are three at the moment, I want to add a reviews tab instead of the link and other peoples reviews. Also how do I change the order of these tabs?

3 answers

Profile photo of Seoki Lee 1510.00 $tone March 20, 2014

If you want to add a reviews tab instead of the link and other peoples reviews, please edit this file: ..\app\design\frontend\default\jm_hawkstore\layout \catalog.xml

After the code:


<block type="catalog/product_view" name="" template="catalog/product/view.phtml">

Please add this code (At line 210):


<block type="review/product_view_list" name="product_reviews" as="product_reviews" template="review/product/view/list.phtml" />
Profile photo of Paul k 0.00 $tone March 25, 2014

Thats awesome thanks!

Is it possible to add the add review page as well? Or can we reorder the tabs? and add an if statement so if there is a review show the reviews first, if not show the add review tab lost.

Thank you very much!

Profile photo of Seoki Lee 1510.00 $tone March 26, 2014

To add tab on review page like detail page, please open the file: ..\app\design\frontend\default\jm_hawkstore\layout review.xml

After the code (at line 98):


<block type="review/form" name="" as="review_form">
	<block type="page/html_wrapper" name="" as="form_fields_before" translate="label">
		<label>Review Form Fields Before</label>
		<action method="setMayBeInvisible"><value>1</value></action>

Add this code:


<block type="catalog/product_view_additional" name="" as="product_additional_data" />
<block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
	<action method="addToParentGroup"><group>detailed_info</group></action>
<block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
	<action method="addToParentGroup"><group>detailed_info</group></action>

You can find out more how to add custom tab to product detail page at:…abs-to-product

Hope it helps.


Please login or Register to Submit Answer

Written By