Emergency situation

In case of emergencies or breakdowns, you can send an SMS to our emergency hotline

On-call phone (SMS only)

+45 29 70 15 95

Send an SMS with the following information:

  • Your name and webshop
  • Description of the problem
  • Your callback phone number

Notes: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Custom design on captcha

Guide to customize the captcha design in your Shoporama theme with your own HTML and styling.

Reading time: approx. {eight} minutes
Developer

Shoporama automatically displays a CAPTCHA when a user submits an email address without being logged in (e.g., via a contact form or stock notification). You can customize the appearance of the CAPTCHA by creating your own template file.

When does the CAPTCHA appear?

The CAPTCHA is triggered automatically when:

  • A user submits a form with an email address without being logged in
  • The user has an empty cart or no cart
  • The request is missing an HTTP referer (suspicious submission)
  • Signing up for out-of-stock notifications

How to create your own CAPTCHA

Shoporama-kodeeditoren under Tema med filliste for MBN-Delaware-temaet, hvor captcha.html og de øvrige template-filer redigeres direkte i browseren.
The code editor in the Shoporama admin under “Theme,” where the theme’s files are listed in the left column. Here, you can create and edit captcha.html along with the other template files.

Create the captcha.html file in your theme:

  • Smarty 4 themestemplates/captcha.html
  • Smarty 2 themescaptcha.html in the theme root

Available variables

Variable Description
<{$imgstr}>Base64-encoded PNG image containing the captcha code (310×100 px)
<{$form}>Hidden form fields containing the original POST data
<{$error}>Set to true if the user entered the wrong code

Example (Smarty 4)

<form action="" method="post">
  <{$form}>

  <{if $error}>
    <p>Incorrect code – please try again.</p>
  <{/if}>

  <img src="<{$imgstr}>" alt="Captcha">

  <input type="text" name="c" autocomplete="off"
         maxlength="3" autofocus>

  <button type="submit">Confirm</button>
</form>

Important

The input field must have name="c" — this is the field Shoporama validates against. The code is 3 characters long and is case-insensitive.

Auto-submit after 3 characters

Most themes automatically submit the form when the user has entered 3 characters. You can implement this with the following JavaScript:

document.querySelector('input[name="c"]')
  .addEventListener('input', function() {
    if (this.value.length === 3) {
      this.closest('form').submit();
    }
  });

You can style the CAPTCHA page however you like with CSS, as long as the three required elements are included: <{$form}>, the image from <{$imgstr}>, and the input field with name="c".

Need help? Contact us at support@shoporama.dk.