Skip to content
Help Center
Log in Sign up free

Install the widget on PrestaShop

This guide covers PrestaShop 1.7 and uses the JustReview Testimonials widget as the example. Every other widget works the same way.

  1. Build your widget and click “Generate Code for your website”.

  2. Add the library to your theme templates.

    Both files live in your theme:

    httpdocs/themes/{your_theme}/templates/_partials/head.tpl
    httpdocs/themes/{your_theme}/templates/_partials/footer.tpl

    Paste part 1 and part 2 at the end of these files. Part 1 loads the library and belongs there only once, even when you display several widgets. Part 2 is the configuration for one widget, so add one part 2 per widget.

    footer.tpl:

    head.tpl:

  3. Paste part 3 where the widget should appear.

    Put the container <div> into the template that renders that spot, for example index.tpl for the home page or product.tpl for product pages.

    <div id="justreview-testimonials"></div>
  4. Clear the PrestaShop cache.

    Go to Advanced Parameters → Performance and clear the cache, otherwise the shop keeps serving the old compiled template and your change appears to do nothing.

Widget still not visible?

  1. PrestaShop cache cleared after the edit (Advanced Parameters → Performance).
  2. Domain whitelist in Settings matches your shop address.
  3. Part 3 is present in the template that renders the page you are looking at.
  4. Smarty compilation set to recompile while you test, so template edits take effect.
  5. The Badge widget needs at least one review before it shows anything.