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.
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
- Log in to the Shoporama admin
- Go to Design → Search and display
- Find the Smarty version field in the Theme card, and change the dropdown from 2 to 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}>
Have questions? Contact us at support@shoporama.dk.
Related articles
Customize the content of your automatic emails
How to customize the automatic emails your Shoporama store sends: without code under Design > Emails, with subject lines and texts in the store...
Checkout flow and shipping calculation in your theme
A guide for developers on implementing shipping in the checkout flow of a Shoporama theme, including the recommended page order and parcel shop...
Delaware theme: settings and customization
A complete guide to Delaware and DelawareDK in your Shoporama store: theme settings, footer menus, mega menu, colors, payment icons, Trustpilot,...