Skip to main content

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

  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: Clawzia-laajennusRecommended

Älä nimeä pakettia clawzia.ocmod.zip uudelleen: OpenCart 4 käyttää tiedostonimeä laajennuksen koodina, joten uudelleennimetty tiedosto (esimerkiksi toisen latauksen jälkeen) ei toimi.
  1. Lataa laajennus

    Lataa paketti ja napsauta sitten alla olevan luettelon ”Clawzia Withdrawal Button” -rivin vihreää Install-painiketta.

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

    Screenshot follows: Extensions → Installer ja ladattu paketti.

  2. Asenna moduuli

    Valitse tyypiksi Modules ja asenna ”Clawzia Withdrawal Button” vihreällä +-painikkeella.

    Where: Extensions → Extensions → tyyppi Modules

    Screenshot follows: Moduuliluettelo ja Clawzia-rivi.

  3. Syötä julkinen avaimesi

    Avaa moduulin asetukset sinisellä kynäpainikkeella, liitä julkinen avaimesi, kytke Status päälle ja tallenna.

    Screenshot follows: Clawzian asetussivu.

  4. 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.

  5. Jos mitään ei näy

    Tarkista, että tapahtuma clawzia_footer on 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

OpenCart 3:ssa Clawzialla ei ole asetussivua: lisäät julkisen avaimesi tiedostoon ennen sen asentamista.
  1. Lisää julkinen avaimesi tiedostoon

    Pura clawzia-opencart3.ocmod.zip, avaa install.xml tekstieditorilla ja korvaa CLAWZIA_PUBLIC_KEY julkisella avaimellasi (säilytä lainausmerkit). Pakkaa install.xml uudelleen ZIP-tiedoston ylätasolle nimellä, joka päättyy .ocmod.zip.

    Screenshot follows: Muokattu rivi tiedostossa install.xml.

  2. Lataa muutos

    Lataa ZIP-tiedosto.

    Where: Extensions → Installer → Upload

  3. 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

  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.

Valmis asentamaan?

Luo kauppasi saadaksesi julkisen avaimesi ja noudata sitten yllä olevia vaiheita.