Skip to main content

Installationsguide

Installera ångerknappen i OpenCart

För OpenCart 4 finns ett Clawzia-tillägg med en inställningssida; för OpenCart 3 en OCMOD-modifiering. Be oss om paketet som passar din butik.

Innan du börjar

  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-tilläggetRecommended

Byt inte namn på paketet clawzia.ocmod.zip: OpenCart 4 använder filnamnet som tilläggets kod, så en omdöpt fil (till exempel efter en andra nedladdning) fungerar inte.
  1. Ladda upp tillägget

    Ladda upp paketet och klicka sedan på den gröna knappen Install för ”Clawzia Withdrawal Button” i listan nedanför.

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

    Screenshot follows: Extensions → Installer med det uppladdade paketet.

  2. Installera modulen

    Välj typen Modules och installera ”Clawzia Withdrawal Button” med den gröna +-knappen.

    Where: Extensions → Extensions → typ Modules

    Screenshot follows: Modullistan med Clawzia-posten.

  3. Ange din publika nyckel

    Öppna modulens inställningar med den blå pennknappen, klistra in din publika nyckel, slå på Status och spara.

    Screenshot follows: Clawzias inställningssida.

  4. Verifiera installationen

    Klicka på Verify installation. Statuskortet visar din butik, dess land, texten på länken och om formuleringen är verifierad, och kontrollerar att widgetfilen kan laddas ner.

  5. Om ingenting visas

    Kontrollera att händelsen clawzia_footer är aktiverad och uppdatera sedan temats cache.

    Where: Extensions → Events; temats cache: Dashboard → kugghjulsikonen (Developer Settings) → Theme → Refresh

OpenCart 3: OCMOD-modifieringenAlternative

OpenCart 3 har ingen inställningssida för Clawzia: du lägger in din publika nyckel i filen innan du installerar den.
  1. Lägg in din publika nyckel i filen

    Packa upp clawzia-opencart3.ocmod.zip, öppna install.xml i en vanlig textredigerare och ersätt CLAWZIA_PUBLIC_KEY med din publika nyckel (behåll citattecknen). Packa install.xml till en ZIP-fil igen, på ZIP-filens översta nivå, med ett namn som slutar på .ocmod.zip.

    Screenshot follows: Den ändrade raden i install.xml.

  2. Ladda upp modifieringen

    Ladda upp ZIP-filen.

    Where: Extensions → Installer → Upload

  3. Uppdatera modifieringarna

    Uppdatera modifieringarna och, om temats cache är på, temats cache.

    Where: Extensions → Modifications → Refresh

    Screenshot follows: Extensions → Modifications → Refresh.

Good to know

  • Teman vars sidfotsmall saknar en avslutande body-tagg hoppas över: lägg till {{ clawzia_snippet }} före </body> i den mallen för hand.
  • Installera modifieringen bara en gång, och inte tillsammans med en kopia i mappen system: med två kopior skrivs koden ut två gånger.

Kontrollera installationen

  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.

Redo att installera?

Skapa din butik för att få din publika nyckel och följ sedan stegen ovan.