Store Reviews Page - Submit Button

By Daniel Hoyland, 2 years ago


We are using the 'Store Reviews page (/store-reviews) and would like to add a submit button to the bottom of the reviews, much like the one on the homepage.

Can anyone advise how we do this?

By Petr Hucik, 2 years ago

That's easy.

Simply edit file modules/revws/views/templates/front/store-reviews.tpl

and add code like this one:

<button class="btn btn-primary" onclick="revws({ type: 'TRIGGER_CREATE_REVIEW', entityType: 'store',entityId: 1 })">
 Hi, could you please write some review for us? Thanks a bunch
By Daniel Hoyland, 2 years ago

Thank you, that is perfect!