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
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.
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.
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
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.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.zipScreenshot follows: Extensions → Installer s nahratým balíkom.
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.
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.
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.
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
Vložte verejný kľúč do súboru
Rozbaľte
clawzia-opencart3.ocmod.zip, otvorteinstall.xmlv obyčajnom textovom editore a nahraďteCLAWZIA_PUBLIC_KEYsvojím verejným kľúčom (úvodzovky ponechajte). Súborinstall.xmlznova 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.
Nahrajte modifikáciu
Nahrajte súbor ZIP.
Where: Extensions → Installer → Upload
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
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.
Try it with the keyboard
Press Tab until the link is focused, then Enter: the two-step withdrawal form opens. Close it with Esc.
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.
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.
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.