Skip to content
Platforms

Shoptec

Where to paste the Otto chat code in Shoptec as custom template HTML and where to find the product feed for Heureka or Google.

On this page

Shoptec is a Slovak platform for renting an online store. You add the chat code as custom HTML in the template settings, which takes about 5 minutes. The admin is in Slovak, so the steps give the Slovak names with their meaning in brackets.

What you need

  • An Otto account. You find the chat code in the panel under Overview, on the Installation & integrations card, on the Shoptec tile. It is under the More platforms tile, and you can also search for it.
  • Access to Nastavenia (Settings), Témy (Themes) in the Shoptec admin.

Chat code

On the Shoptec tile, click Copy code. You get one line with your company’s public key:

<script async src="https://ottoai.sk/widget.js" data-otto-key="pk_vas_kluc"></script>
The sample shows pk_vas_kluc instead of a key, the tile gives you the code with your own key. The key is not a password, you do not need to hide it. Add the code once, it covers the whole site.

Adding the code

  1. In the admin open Nastavenia, Témy and pick the template your store uses.
  2. In its settings open the HTML part.
  3. Add the chat code as custom HTML placed in the <body> tag. Placing it in <head> works too, but add the code only once.
  4. Save the changes.
Check in the Shoptec price list whether your package includes custom HTML. If you do not see the HTML part in the template settings, write to Shoptec support.

You can also follow the official Shoptec help.

Checking it works

  1. Open your website in a new browser window and reload. A chat bubble should pop up in the bottom right.
  2. Send the chat a test question. Otto answers within a few seconds.
  3. In the panel, under Settings, Connections, the Your website row shows the domain the chat runs on.

Product catalogue

You find the feed addresses in Nastavenia, Exportované súbory (Exported files). Use the product feed for Heureka or Google, not the availability feed heurekastocks.xml. The Google feed refreshes once a day, and Shoptec support has to turn on its generation first.

Paste the feed address in the panel under Settings, Catalogue, and click Check feed. The panel tells you how many products it found, and Otto keeps the feed up to date on its own. More in Product catalogue.

Troubleshooting

The chat only shows after an order is completed

The custom HTML is placed on the thank-you page. In Nastavenia, Témy, the HTML part, change its placement to the <body> tag and save.

There is no Google feed in Exportované súbory

Shoptec support turns on the Google feed generation first. Write to them, and then the feed refreshes once a day.

Also check

  • Reload the page without cache with Ctrl+F5, or open it in a private window.
  • The code should be on the page only once, a second copy is ignored.
  • A cookie consent bar can block scripts until the visitor agrees. If the chat only shows up after consent, see Cookie consent.
  • If your site sends a Content-Security-Policy header, allow https://ottoai.sk in it, as shown in Content-Security-Policy.
  • In the browser console (F12), look for messages starting with [Otto]. They tell you what the chat is missing.
  • Still nothing? Write to us at podpora@ottoai.sk and include your website address.

Removing the chat

In Nastavenia, Témy, in the HTML part of the chosen template, delete the chat code and save.