How do I display the reviews list in the product description tabs?
If you are not comfortable with technical area, please ask your webmaster for help.
This FAQ only applies to merchants with a PrestaShop 1.7 version.
Here is the procedure to follow if your shop is under a PrestaShop 1.7 version and you want to make product reviews appear into a tab in the "description" block.
First of all, go to the module "Reviews" section and click the "Product Page" tab. For "Your theme layout" select "Standard theme 1.7 with description tabs":
Click "Update" at the bottom right and go one of your product pages that have reviews.
If your theme includes necessary lines of code for displaying content into block tabs, then you should see product reviews in a tab near the product description, as in the example below:
If nothing appears, then this means your theme doesn't include the call to the "hooks" needed to display content in tabs. Indeed, to display reviews into a block tab, it's necessary that your theme uses the "displayProductTab" and "displayProductTabContent" hooks that allow you to add various content into block tabs on your product pages. You will have to add the call to these hooks in the "product.tpl" template of your theme. To do this, follow the following procedure or ask your technical content to do so.
Warning: the following procedure is valid for themes that follow the PrestaShop theme development standards. If this in not the case for your theme, you have to ask your theme editor or technical contact for help.
- Log in your FTP with your FTP Client
- Go to the folder: "themes/your_current_theme/templates/catalog/"
- Download the "product.tpl" file, edit it locally and add 2 lines below (help you with the screenshot) in the {block name='product_tabs'}:
- In the <ul class="nav nav-tabs" role="tablist"> list just before the </ul> close tag, add: {hook h="displayProductTab"}
- In the <div class="tab-content" id="tab-content"> just before the </div> close tag, add: {hook h="displayProductTabContent"}
- Save your changes and upload the modified file in the same directory via your FTP
- Check if your smarty compile options allow you to take into account changes done in your template files. For this, go to the "Advanced parameters > Performance" menu of your PrestaShop back office and for the "Template compilation" option select, if it's not already done, "Recompile templates if the files have been updated" to be sure the modifications made in the template will be applied. Remember to save.
- Finally, return into the module and check that the "Your theme layout" option is well on "Standard theme 1.7 with description tabs" (in "Reviews" section, "Product page" tab). Save.
Product reviews should now correctly be displayed into a block tab, as the examplme below:
Other FAQs in this category
- How do I display the review stars in the product list?
- How do I solve my review star rendering issue?
- What should I do if I can't post a review or if I have problems displaying the rating stars?
- Why are the stars in the rating pop-up not displayed?
- How do I change CSS & templates files in order to integrate my theme ?