How to add review tab on product view page

How to add review tab on product view page

July 3, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to add review tab on product view page

Adding a Review Tab on Product View Page in Magento

As you dive into Magento development, you’ll often need to modify the product view page to better suit your store’s needs. One common request is adding a review tab alongside existing tabs like Description and Additional Information.

Identifying the Problem with Your Current Approach

You’ve already made progress by using the catalog/product_view_tabs block and adding an action for the review tab:

<action method="addTab" translate="title" module="catalog">
    <alias>review</alias>
    <title>Review</title>
    <block>review/product_view_list</block>
    <template>review/product/view/list.phtml</template>
</action>

You’re also correctly echoing the child HTML for the tabs in your view.phtml file:

<?= $this->getChildHtml('info_tabs') ?>

However, you mentioned that not all added tabs are visible. Let’s troubleshoot this issue.

Ensuring Tabs Are Visible

The visibility of tabs depends on whether the corresponding blocks and templates exist in your theme. In your case, the review/product_view_list block is likely pointing to a template file that isn’t being rendered correctly or doesn’t exist in your current layout configuration.

Here are some steps to verify:

  1. Check Template File: Ensure that the list.phtml file exists under the app/design/frontend/{your_package}/{your_theme}/template/review/product/view/ directory. If it’s missing, you’ll need to create a copy from the default Magento theme and modify it as needed.
find app/design/frontend -name 'list.phtml'

If the file is found but still isn’t displaying content, proceed to the next step.

  1. Verify Layout Configuration: The catalog_product_view.xml layout file (usually located at app/design/frontend/{your_package}/{your_theme}/layout/catalog_product_view.xml) should contain a reference to your review tab.
<block type="review/product_list" name="product.reviews" as="reviews">
    <action method="setTitle" translate="title">
        <argument name="title" xsi:type="string">Reviews</argument>
    </action>
</block>
  1. Enable Review Functionality: If you’re still having issues, ensure that the review functionality is enabled in your Magento backend under Stores > Configuration > Catalog > Product Reviews.

Best Practices for Customizing Product Tabs

While adding tabs manually can work for smaller changes, a cleaner approach uses XML layout updates and custom blocks. This allows for better separation of concerns and easier maintenance:

  1. Create a Custom Block: Developers often create a custom block to contain the review functionality rather than using the built-in review/product_view_list block.

  2. Override Layout Files: Create a new layout file in your theme to add or modify tabs without touching core files.

  3. Use Magento’s Built-In Functionality: Magento provides features like addTab and other layout modification methods that make customization more straightforward and avoid conflicts with future updates.

Remember, when modifying Magento templates and layouts, always use the correct directory structure for your theme package (usually app/design/frontend/{your_package}/{your_theme}). This ensures that your changes are properly isolated from the core files.

Conclusion

Adding a review tab to your product view page involves several steps, including adding an action to the tabs block in your layout XML file and ensuring the corresponding template exists in your theme. If you follow these best practices and verify the necessary files exist, you should be able to successfully add custom tabs to your Magento store.

For more advanced customizations and to learn from experienced Magento developers, I recommend visiting Laravel Company. They offer a wealth of tutorials and resources for Magento development that can help you build more efficient and maintainable e-commerce solutions.

Catalog Extensions Themes Configuration

Our network