Show "write review" button near product price

Dear Milosz, Thank you for all your work, for you comments on prestashop forums - i found a lot of answers for my questions only because of your replies. Please help me with your module "Prestashop Free product reviews". I want to display "rating" and "write a review" on a product page near "price". Is it possible? Thank you for all your work Regards Andrew P.S. I'm using custom theme, Prestashop 1.7. 

Add a review button on product page

you can do it with minor modification of your theme file.
{hook h='displayProductListReviews' product=$product}
This code is responsible for "stars" that appear on list of products with product overal grade.
paste this code to file: /themes/your-theme/templates/catalog/_partials/product-prices.tpl, put the code right after code:  {hook h='displayProductPriceBlock' product=$product type="after_price"}
If you want to dispaly "write your review" button, paste there also code:
<a class="open-comment-form btn btn-primary" href="#new_comment_form">{l s='Write your review'}</a>

the result will be like:

you will need to stylize it to make the design looks like you wish.
Share on Google Plus


This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment


Post a Comment