Guida all’installazione
Installare il pulsante di recesso su OpenCart
Per OpenCart 4 esiste un’estensione Clawzia con una pagina di impostazioni; per OpenCart 3, una modifica OCMOD. Richiedeteci il pacchetto adatto al vostro negozio.
Prima di iniziare
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: l’estensione ClawziaRecommended
clawzia.ocmod.zip: OpenCart 4 usa il nome del file come codice dell’estensione, quindi un file rinominato (ad esempio dopo un secondo download) non funziona.Caricate l’estensione
Caricate il pacchetto, poi fate clic sul pulsante verde Installa di «Clawzia Withdrawal Button» nell’elenco sottostante.
Where: Extensions → Installer → Upload →
clawzia.ocmod.zipScreenshot follows: Extensions → Installer con il pacchetto caricato.
Installate il modulo
Scegliete il tipo Modules e installate «Clawzia Withdrawal Button» con il pulsante verde +.
Where: Extensions → Extensions → tipo Modules
Screenshot follows: L’elenco Modules con la voce Clawzia.
Inserite la vostra chiave pubblica
Aprite le impostazioni del modulo con il pulsante blu a forma di matita, incollate la vostra chiave pubblica, attivate Status e salvate.
Screenshot follows: La pagina di impostazioni di Clawzia.
Verificate l’installazione
Fate clic su Verify installation. La scheda di stato mostra il vostro negozio, il suo paese, il testo del link e se il testo è verificato, e controlla che il file del widget sia scaricabile.
Se non compare nulla
Controllate che l’evento
clawzia_footersia attivo, poi aggiornate la cache del tema.Where: Extensions → Events; cache del tema: Dashboard → icona a ingranaggio (Developer Settings) → Theme → Refresh
OpenCart 3: la modifica OCMODAlternative
Inserite la vostra chiave pubblica nel file
Decomprimete
clawzia-opencart3.ocmod.zip, apriteinstall.xmlin un editor di testo semplice e sostituiteCLAWZIA_PUBLIC_KEYcon la vostra chiave pubblica (mantenendo le virgolette). Comprimete di nuovoinstall.xmlal livello principale dello ZIP, con un nome che termini in.ocmod.zip.Screenshot follows: La riga modificata in install.xml.
Caricate la modifica
Caricate il file ZIP.
Where: Extensions → Installer → Upload
Aggiornate le modifiche
Aggiornate le modifiche e, se la cache del tema è attiva, anche la cache del tema.
Where: Extensions → Modifications → Refresh
Screenshot follows: Extensions → Modifications → Refresh.
Good to know
- I temi il cui template del footer non ha il tag body di chiusura vengono saltati: aggiungete a mano
{{ clawzia_snippet }}prima di</body>in quel template. - Installate la modifica una sola volta e non insieme a una copia nella cartella
system: con due copie il codice viene stampato due volte.
Verificate l’installazione
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.