Skip to main content

Návod na inštaláciu

Inštalácia tlačidla na odstúpenie v OpenCart

Pre OpenCart 4 existuje rozšírenie Clawzia so stránkou nastavení; pre OpenCart 3 modifikácia OCMOD. Vyžiadajte si od nás balík, ktorý sa hodí k vášmu e-shopu. Názvy menu sú uvedené tak, ako sa zobrazujú v anglickej administrácii OpenCartu.

Skôr než začnete

  1. Create your shop in Clawzia

    Sign up with your email address, create the shop, choose its country and default language and enter the email address that receives withdrawal notifications.

  2. Allow your shop’s domains

    Add every domain your shop runs on to the allowed domains, for example with and without www and the platform address of your shop. On other domains the widget only shows a link to the hosted form, with the EU directive’s wording in English.

  3. Copy your code

    Copy the code from the Install page of your dashboard (for the plugins, only the public key, which starts with pk_). The public key is not a secret.

OpenCart 4: rozšírenie ClawziaRecommended

Balík clawzia.ocmod.zip nepremenúvajte: OpenCart 4 používa názov súboru ako kód rozšírenia, takže premenovaný súbor (napríklad po druhom stiahnutí) nefunguje.
  1. Nahrajte rozšírenie

    Nahrajte balík a potom v zozname nižšie kliknite na zelené tlačidlo Install pri „Clawzia Withdrawal Button“.

    Where: Extensions → Installer → Upload → clawzia.ocmod.zip

    Screenshot follows: Extensions → Installer s nahratým balíkom.

  2. Nainštalujte modul

    Vyberte typ Modules a nainštalujte „Clawzia Withdrawal Button“ zeleným tlačidlom +.

    Where: Extensions → Extensions → typ Modules

    Screenshot follows: Zoznam Modules so záznamom Clawzia.

  3. Zadajte svoj verejný kľúč

    Otvorte nastavenia modulu modrým tlačidlom s ceruzkou, vložte verejný kľúč, zapnite Status a uložte.

    Screenshot follows: Stránka nastavení Clawzie.

  4. Overte inštaláciu

    Kliknite na Verify installation. Stavová karta zobrazí váš e-shop, jeho krajinu, text odkazu a či je znenie overené, a skontroluje, či sa dá stiahnuť súbor widgetu.

  5. Ak sa nič nezobrazí

    Skontrolujte, či je zapnutá udalosť clawzia_footer, a potom obnovte cache šablóny.

    Where: Extensions → Events; cache šablóny: Dashboard → ikona ozubeného kolesa (Developer Settings) → Theme → Refresh

OpenCart 3: modifikácia OCMODAlternative

OpenCart 3 nemá pre Clawziu stránku nastavení: verejný kľúč vložíte do súboru ešte pred jeho inštaláciou.
  1. Vložte verejný kľúč do súboru

    Rozbaľte clawzia-opencart3.ocmod.zip, otvorte install.xml v obyčajnom textovom editore a nahraďte CLAWZIA_PUBLIC_KEY svojím verejným kľúčom (úvodzovky ponechajte). Súbor install.xml znova zabaľte do ZIP na najvyššej úrovni archívu s názvom končiacim na .ocmod.zip.

    Screenshot follows: Upravený riadok v install.xml.

  2. Nahrajte modifikáciu

    Nahrajte súbor ZIP.

    Where: Extensions → Installer → Upload

  3. Obnovte modifikácie

    Obnovte modifikácie a, ak je zapnutá cache šablóny, aj cache šablóny.

    Where: Extensions → Modifications → Refresh

    Screenshot follows: Extensions → Modifications → Refresh.

Good to know

  • Šablóny, ktorých pätová šablóna nemá uzatvárací tag body, sa preskočia: do tejto šablóny pridajte {{ clawzia_snippet }} pred </body> ručne.
  • Modifikáciu nainštalujte iba raz a nie spolu s kópiou v priečinku system: pri dvoch kópiách sa kód vypíše dvakrát.

Skontrolujte inštaláciu

  1. Open your shop in a private window

    The withdrawal link appears at the end of your footer, or as a floating button, depending on the position you chose in the dashboard.

  2. Try it with the keyboard

    Press Tab until the link is focused, then Enter: the two-step withdrawal form opens. Close it with Esc.

  3. Check that the code is there once

    View the page source and search for data-shop="pk_. The script tag should appear exactly once per page.

  4. Send a test withdrawal

    Send a withdrawal with your own email address and the order reference TEST. Check the confirmation email and its receipt link, then close the request in your dashboard.

  5. If the link does not appear

    If your site sends a Content Security Policy, allow https://clawzia.com in script-src and connect-src. Exclude widget.js from script combining, minifying and “delay JavaScript” features of optimisation plugins and CDNs.

Ste pripravení na inštaláciu?

Vytvorte si e-shop, získate verejný kľúč, a potom postupujte podľa krokov vyššie.