Skip to content
Help Center
Log in Sign up free

Install the widget on Shoper

This guide uses the JustReview Testimonials widget as the example. Every other widget works the same way. Shoper splits the snippet across two different places, so follow the order below.

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

    JustReview panel, the widget Customize screen with the Generate Code for your website button at the bottom

    The Copy code for your website dialog with three code blocks: the library, the widget configuration and the target div

  2. Add part 2 to the custom JavaScript field.

    Go to Wygląd i Treści → Wygląd Sklepu → Obecny Szablon Graficzny, open Własny Skrypt JS and paste part 2 at the bottom of the file.

    Leave out the <script> and </script> tags. This field already is a JavaScript file, so including the tags breaks it.

    Screenshot: add part 2 to the custom JavaScript field

  3. Add part 1 to footer.tpl.

    Open Edycja zaawansowana, find footer.tpl and paste part 1. It loads the library and belongs there only once, even when you display several widgets.

    Screenshot: add part 1 to footer.tpl

  4. Paste part 3 where the widget should appear.

    Still in Edycja zaawansowana, open the template that renders the target page, for example index.tpl, and paste part 3 there.

    Screenshot: paste part 3 where the widget should appear (screen 1)

    Screenshot: paste part 3 where the widget should appear (screen 2)

Widget still not visible?

  1. Part 2 has no <script> tags in the custom JS field. With them, the whole file fails.
  2. Domain whitelist in Settings matches your shop address.
  3. Part 3 is present in the template that renders the page you are viewing.
  4. Template cache cleared after editing.
  5. The Badge widget needs at least one review before it shows anything.