Asennusopas
Asenna peruuttamispainike: OpenCart
OpenCart 4:lle on Clawzia-laajennus asetussivuineen ja OpenCart 3:lle OCMOD-muutos. Pyydä meiltä kauppaasi sopiva paketti.
Ennen kuin aloitat
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-laajennusRecommended
clawzia.ocmod.zip uudelleen: OpenCart 4 käyttää tiedostonimeä laajennuksen koodina, joten uudelleennimetty tiedosto (esimerkiksi toisen latauksen jälkeen) ei toimi.Lataa laajennus
Lataa paketti ja napsauta sitten alla olevan luettelon ”Clawzia Withdrawal Button” -rivin vihreää Install-painiketta.
Where: Extensions → Installer → Upload →
clawzia.ocmod.zipScreenshot follows: Extensions → Installer ja ladattu paketti.
Asenna moduuli
Valitse tyypiksi Modules ja asenna ”Clawzia Withdrawal Button” vihreällä +-painikkeella.
Where: Extensions → Extensions → tyyppi Modules
Screenshot follows: Moduuliluettelo ja Clawzia-rivi.
Syötä julkinen avaimesi
Avaa moduulin asetukset sinisellä kynäpainikkeella, liitä julkinen avaimesi, kytke Status päälle ja tallenna.
Screenshot follows: Clawzian asetussivu.
Tarkista asennus
Napsauta Verify installation. Tilakortti näyttää kauppasi, sen maan, linkin tekstin ja sen, onko teksti tarkistettu, sekä varmistaa, että widget-tiedoston voi ladata.
Jos mitään ei näy
Tarkista, että tapahtuma
clawzia_footeron käytössä, ja päivitä sitten teeman välimuisti.Where: Extensions → Events; teeman välimuisti: Dashboard → rataskuvake (Developer Settings) → Theme → Refresh
OpenCart 3: OCMOD-muutosAlternative
Lisää julkinen avaimesi tiedostoon
Pura
clawzia-opencart3.ocmod.zip, avaainstall.xmltekstieditorilla ja korvaaCLAWZIA_PUBLIC_KEYjulkisella avaimellasi (säilytä lainausmerkit). Pakkaainstall.xmluudelleen ZIP-tiedoston ylätasolle nimellä, joka päättyy.ocmod.zip.Screenshot follows: Muokattu rivi tiedostossa install.xml.
Lataa muutos
Lataa ZIP-tiedosto.
Where: Extensions → Installer → Upload
Päivitä muutokset
Päivitä muutokset ja, jos teeman välimuisti on käytössä, myös teeman välimuisti.
Where: Extensions → Modifications → Refresh
Screenshot follows: Extensions → Modifications → Refresh.
Good to know
- Teemat, joiden alalaitapohjassa ei ole sulkevaa body-tagia, ohitetaan: lisää
{{ clawzia_snippet }}ennen</body>-tagia kyseiseen pohjaan käsin. - Asenna muutos vain kerran äläkä yhdessä
system-kansiossa olevan kopion kanssa: kahdella kopiolla koodi tulostetaan kahdesti.
Tarkista asennus
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.