Shoptet has an HTML code editor that adds your own code to every page of your shop, and that is all the Yaplet widget needs. You copy one block of code from Yaplet, paste it into Shoptet, and the chat button appears on your shop.
This guide follows the Hungarian Shoptet admin, so the menu names below are written exactly as Shoptet shows them, with an English translation in brackets.
1. Copy your Yaplet code
In the Yaplet dashboard's left menu, go to Brand → (your brand) → Chat widget → Install. If the tab asks where your website runs, choose Other website. Copy the code with the copy button on the code block.
Shoptet's HTML code boxes expect HTML, so the code must sit between a <script> line and a </script> line. With Other website chosen, the code already has these lines. If the tab didn't ask, the code is plain JavaScript that starts with !function (Yaplet, and you add the lines in step 3.
2. Open the HTML code editor in Shoptet
Log in to your Shoptet admin and go to Megjelenés és tartalom → Szerkesztő → HTML kód (Appearance and content → Editor → HTML code).
3. Paste the code
- Find the Footer box. Code in this box goes to the end of every page, just before the closing
</body>tag. (The Fejléc (Header) box works too.) - At the end of the box, start a new line and paste the code you copied.
- Check the start: the code must begin with a
<script>line. If what you copied starts with!function (Yapletinstead, type<script>on a new line before it. - Check the end: the code must finish with a
</script>line. If what you copied started with!function (Yaplet, type</script>on a new line after it. - Save your changes.
If the box already holds other code, don't delete it: add the Yaplet code after it. Each box takes up to 8,192 characters, and the Yaplet code with its tags is about 1,500.
4. Check your shop
Open your shop in a new browser tab and reload the page. The Yaplet chat button appears in the bottom-right corner. Click it to check that the chat opens.
For a full checklist, see Verify your installation.
If the chat doesn't appear
- Shoptet won't save the change. The box is over its 8,192-character limit. If the Footer box is almost full, paste the code into the Fejléc (Header) box instead.
- The code shows up as text on your pages. The
<script>tags are missing. Add them as in step 3 and save. - You pasted the code in the Sablontervező (Template designer). Changes made there stay a draft until you click Változások közzététele (Publish changes).
- You can't find the HTML kód menu. Ask Shoptet support whether your plan includes it.
- Your browser shows an old copy of the page. Reload the page, or open your shop in a private window.
What's next
To see what the code does and where your widget ID is, read Install Yaplet.