Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: 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.

How to upgrade your theme to Smarty 4

Upgrade your Shoporama store from Smarty 2 to Smarty 4. Smarty 4 is faster, more secure, and runs on PHP 8.

Reading time: about 3 minutes
Developer

Smarty is the template language used to build store themes in Shoporama. Smarty 4 is the latest version and gives you better performance, stronger security, and a future-proof theme.

Benefits of Smarty 4

  • Faster: Smarty 4 runs on PHP 8, which is significantly faster than PHP 7
  • More secure: a better security model and updated dependencies
  • Future-proof: all new themes (Delaware, DelawareDK, California, Alaska2, Washington, Montana, and MontanaB2B) are built for Smarty 4

How to upgrade to Smarty 4

  1. Log in to the Shoporama admin
  2. Go to Design → Search and display
  3. Find the Smarty version field in the Theme card, and change the dropdown from 2 to 4
  4. Click Save. The cache is cleared automatically when you save the page

If the field is grayed out and says Controlled by the theme below it, your theme sets the version itself, and you can't change it here. Shoporama's new themes set the version themselves and run Smarty 4.

Important

After switching, test your store thoroughly. Browse around the site and check that everything works, especially if your theme has custom changes.

Want us to convert your theme?

If your theme has custom changes and you'd rather not update it to Smarty 4 yourself, Shoporama can convert your theme's templates for you. Email support@shoporama.dk with the name of your store, and we'll work out the details with you.

What is Smarty?

Smarty is a template language that separates logic from presentation. Shoporama is built in PHP, and Smarty is used to generate the HTML in the themes. The syntax looks like this, for example:

<{foreach $products as $product}>
  <h2><{$product->getName()}></h2>
<{/foreach}>
The code editor in the Shoporama admin with the MBN-Delaware theme's file list on the left and Smarty template code open in the after_purchase.html email template
The code editor under Design shows the theme's files in the list on the left and the contents of the selected file on the right. This is where you can edit your theme's Smarty templates directly in your store.

Have questions? Contact us at support@shoporama.dk.