Custom design on captcha
Guide to customize the captcha design in your Shoporama theme with your own HTML and styling.
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

Create the captcha.html file in your theme:
- Smarty 4 themes — templates/captcha.html
- Smarty 2 themes — captcha.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.
Related articles
Own stylesheet (Custom CSS)
Add custom CSS to your Shoporama online store and admin backend. Customize colors, fonts, layout and hide elements without changing theme files.
Change the content of your emails
Guide to customize the content of the automatic emails your Shoporama webshop sends, either via admin or theme templates.
Protect your webshop from spam orders
Guide to protecting your Shoporama webshop from spam orders and fraud using blacklist, captcha and 3D Secure.
Related features
Full design freedom - your design, your rules
Design your online store freely with full access to HTML, CSS and templates. Use templates, Page Builder or build from scratch.
Blacklist / Fraud prevention
Protect your online store from fraud and spam with Shoporama's blacklist feature. Block unwanted orders based on email, IP address and phone number.