How to switch to Smarty 4
Guide to upgrading your Shoporama webshop from Smarty 2 to Smarty 4. Smarty 4 is faster, more secure and runs on PHP 8.
Smarty is the templating language used to build online store themes on Shoporama. Smarty 4 is the latest version and offers better performance, security and future-proofing.
Advantages of Smarty 4
- Faster - Smarty 4 runs on PHP 8, which is significantly faster than PHP 7
- Safer - Better security model and updated dependencies
- Future-proof - All new themes (Delaware, DelawareDK, California, Alaska2, Washington) are built for Smarty 4
How to switch
- Log in to the Shoporama admin
- Go to Settings (top right cog)
- Find the Smarty field and change the dropdown from 2 to 4
- Click Save and reset cache
Important note
Once you've made the switch, you should test your shop thoroughly. Surf around the site and make sure everything works - especially if you have any special customizations in your theme.
What is Smarty?
Smarty is a templating language that separates logic from presentation. Shoporama is built in PHP and Smarty is used to generate HTML in the themes. For example, the syntax looks like this:
<{foreach $products as $product}> <h2><{$product->getName()}></h2> <{/foreach}>
Do you have any questions? Contact us at support@shoporama.dk.
Related articles
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.
Checkout flow and shipping calculation
Guide for developers to implement shipping in the checkout flow of a Shoporama theme.
Delaware theme - customization and guide
Guide to customizing and configuring the Delaware theme on your Shoporama online store.