Vodič za instalaciju
Gumb za raskid u OpenCart
Za OpenCart 4 postoji Clawzia proširenje sa stranicom postavki; za OpenCart 3 OCMOD izmjena. Zatražite od nas paket koji odgovara vašoj trgovini. Izbornici u nastavku imaju nazive iz engleskog sučelja OpenCarta.
Prije nego poč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: Clawzia proširenjeRecommended
clawzia.ocmod.zip: OpenCart 4 koristi naziv datoteke kao kôd proširenja, pa preimenovana datoteka (primjerice nakon drugog preuzimanja) ne radi.Prenesite proširenje
Prenesite paket, a zatim kliknite zeleni gumb Install uz „Clawzia Withdrawal Button” na popisu ispod.
Where: Extensions → Installer → Upload →
clawzia.ocmod.zipScreenshot follows: Extensions → Installer s prenesenim paketom.
Instalirajte modul
Odaberite vrstu Modules i instalirajte „Clawzia Withdrawal Button” zelenim gumbom +.
Where: Extensions → Extensions → vrsta Modules
Screenshot follows: Popis modula sa stavkom Clawzia.
Unesite svoj javni ključ
Otvorite postavke modula plavim gumbom s olovkom, zalijepite svoj javni ključ, uključite Status i spremite.
Screenshot follows: Stranica postavki Clawzije.
Provjerite instalaciju
Kliknite Verify installation. Kartica sa statusom prikazuje vašu trgovinu, njezinu državu, tekst poveznice i je li tekst provjeren te provjerava može li se preuzeti datoteka widgeta.
Ako se ništa ne pojavi
Provjerite je li događaj
clawzia_footeruključen, a zatim osvježite predmemoriju teme.Where: Extensions → Events; predmemorija teme: Dashboard → ikona zupčanika (Developer Settings) → Theme → Refresh
OpenCart 3: OCMOD izmjenaAlternative
Upišite svoj javni ključ u datoteku
Raspakirajte
clawzia-opencart3.ocmod.zip, otvoriteinstall.xmlu običnom uređivaču teksta i zamijeniteCLAWZIA_PUBLIC_KEYsvojim javnim ključem (zadržite navodnike). Ponovno zapakirajteinstall.xml, na najvišoj razini ZIP-a, pod nazivom koji završava na.ocmod.zip.Screenshot follows: Izmijenjeni redak u install.xml.
Prenesite izmjenu
Prenesite ZIP datoteku.
Where: Extensions → Installer → Upload
Osvježite izmjene
Osvježite izmjene (modifications) i, ako je predmemorija teme uključena, predmemoriju teme.
Where: Extensions → Modifications → Refresh
Screenshot follows: Extensions → Modifications → Refresh.
Good to know
- Teme čiji predložak podnožja nema zatvarajuću oznaku body preskaču se: dodajte
{{ clawzia_snippet }}prije</body>u tom predlošku ručno. - Izmjenu instalirajte samo jednom, a ne zajedno s kopijom u mapi
system: s dvije kopije kôd se ispisuje dvaput.
Provjerite instalaciju
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.