Theme settings on products and pages (theme extensions)
Learn how the Theme settings card works on products, categories, static pages, landing pages, and blog posts in Shoporama. The theme defines the fields, such as video, badge, and add-ons in Montana, and the store owner fills them in. A guide for both store owners and theme developers.
What are Theme settings on products and pages?
Theme extensions are extra fields that your theme makes available on products, categories, landing pages, static pages, and blog posts. In the admin, the fields are in the Theme settings card, which used to be called "Extensions from your theme". The theme developer defines the fields, and as the store owner you fill them in directly in the admin, for example on the product's edit page.
Typical examples are a field for a YouTube video, a badge with text and color, add-ons for the product, or a list of features with a title, description, and icon. The theme uses the data you enter to show extra content in your store.
Tip
The Theme settings card is only shown if your theme has fields for that particular type of page. If you cannot see the card on a product or a category, your current theme has no fields there. Do not confuse the card with the Theme settings page under Design, where you control the whole theme, such as colors and texts. That page is described in Theme settings: how to customize your Shoporama theme.
For store owners: how to use Theme settings
When you edit a product, you find the Theme settings card between the Fields and Internal search cards, and as a shortcut in the menu on the right. Click the card to expand it. The fields are organized in groups with a heading, such as Video, Badge, and Tilkøb (add-ons). On categories, static pages, landing pages, and blog posts, the card is right below General.

Fill in the fields as needed. Some fields are simple text fields, others are color pickers, image uploads, or checkboxes. Each field has a title and usually an explanation of what it is used for.
When you save, the fields are saved together with the product or page, and the theme uses them to show the relevant content in your store. For example, in Montana a YouTube video ID that has been filled in shows a video in the product's image gallery. Text fields on products are also included in the store's internal search, unless the theme developer has opted out.
You can also use the product fields on a landing page. Choose the Extended product field rule, and the landing page shows the products that have a specific value in the field.
Theme settings or content types?
The fields in Theme settings come from your theme and belong to the pages you already have: products, categories, static pages, landing pages, and blog posts. If you need a completely new kind of content, such as recipes, retailers, or hotels, with fields you decide yourself, use Content Types under Content → Content Types instead. You create content types yourself in the admin without a theme developer, and they belong to the store and not the theme, so they stay with you if you change themes. Six of Shoporama's themes, such as Montana and Delaware, can show them without changes. The two can also work together: the theme can, for example, give your blog posts a field where you choose a recipe. Read more in the article about content types.
Theme settings in Montana and MontanaB2B
In Montana and MontanaB2B, the fields are explained directly in the admin. On products, there are three groups:
- Video: the YouTube video ID field. The ID is the last part of the YouTube link, so in youtube.com/watch?v=dQw4w9WgXcQ the ID is dQw4w9WgXcQ. The video is shown in the product's image gallery.
- Badge: the fields Badge text, Badge background color, and Badge text color. The badge is shown as a label on the product image, such as New or Online only.
- Add-ons: the Add-on product IDs field. Enter the IDs of the products the customer can add to the cart together with this product, separated by commas, for example 123,456. The product ID is in the address bar when you edit a product, and add-ons with variants get their own variant selector. Read more in Add-ons on the product page.
Fields that did not work as intended have been removed from Montana and MontanaB2B:
- Comment field on the product. If the customer needs to write a text for the product, for example for an engraving, use customer input on products instead.
- Pickup only, which only showed a stock status on the product page and did not hide the other shipping options at checkout.
- Hide bundle display and hide price tables for volume discounts and variants.
- All fields on categories, static pages, blog posts, and landing pages. That is why Montana and MontanaB2B no longer show the Theme settings card there.
Data you have previously saved in the fields is not deleted, but it is no longer shown in the admin, and the theme does not use it. If you use your own customized copy of Montana, your fields are unchanged, because Shoporama does not change stores' own themes. Other themes, such as Delaware, DelawareDK, California, and Alaska2, have their own fields.
Supported field types
Theme settings support a wide range of field types:
- text: a single text field for short values (for example, a video ID or a badge text).
- richtext: an HTML editor with formatting options for longer texts with bold, italics, links, and more.
- longtext: a large text field (textarea) for longer texts without HTML formatting.
- number: a number field for whole numbers from 0 and up.
- decimal: a number field for decimal numbers, including negative numbers (for example, a weight of 2.5 kg or a temperature of -18 degrees).
- link: a field for an address, either a full address that starts with https://, or an address in the store that starts with /. mailto: and tel: also work. If someone enters www.example.com, Shoporama adds https:// in front automatically. Anything else is not saved, and the field is left empty.
- bool: a checkbox for yes/no values (for example, "Show badge").
- color: a color picker for choosing colors visually (for example, the background color of a badge).
- list: a drop-down menu with predefined options.
- multi: several checkboxes for choosing multiple options at once.
- image: upload of a single image.
- images: upload of several images (for example, a gallery).
- video: a video from the Video Archive, which you choose with Select from the video archive or upload. The theme gets the video's address.
- date: a date picker.
- datetime: a date and time picker.
- product and products: a reference to one or more products, which you search for and select. If the field has several products, you can change the order by dragging them.
- category and categories: a reference to one or more categories, which you search for and select.
- content_entry and content_entries: a reference to one or more entries from one of the store's content types, for example a recipe. The theme decides which content type the entries come from.
- repeater: repeating fields that let you add a dynamic number of groups of fields (see the separate section below).
References only show content that customers can see. If a selected product or category is offline, or an entry is set to offline, the store skips it until it is online again.
For theme developers: defining fields
The fields are defined in JSON files in the theme's extensions/ folder. Each file is named after the type of object the fields apply to:
- extensions/product.json: products
- extensions/category.json: categories
- extensions/landing_page.json: landing pages
- extensions/static_page.json: static pages
- extensions/blog_post.json: blog posts
If the file does not exist, or only contains an empty array, [], the theme has no fields for that type, and the Theme settings card is not shown in the admin. Montana and MontanaB2B, for example, have empty files for categories, landing pages, static pages, and blog posts.
The JSON file is an array of groups. Each group has a name, an optional description, and a list of fields. The name is shown as a heading in the card, and a description is shown after the name. Here is an excerpt from Montana. Its texts are written in Danish, and the English admin shows them in English:
[
{
"name": "Video",
"description": "",
"fields": [
{
"title": "YouTube-video-ID",
"description": "Id'et fra YouTube-linket. I youtube.com/watch?v=dQw4w9WgXcQ er id'et dQw4w9WgXcQ. Videoen vises i produktets billedgalleri.",
"id": "youtube_id",
"type": "text"
}
]
},
{
"name": "Badge",
"description": "",
"fields": [
{
"title": "Badge-tekst",
"description": "Vises som et mærke på produktbilledet, fx Nyhed eller Kun online.",
"id": "badge",
"type": "text"
},
{
"title": "Badge-baggrundsfarve",
"id": "badge-bg",
"type": "color",
"default_value": "#fef3c7"
},
{
"title": "Badge-tekstfarve",
"id": "badge-color",
"type": "color",
"default_value": "#92400e"
}
]
}
]
Each field supports these properties:
- id (required): a unique ID, used to get the value in templates.
- title (required): the label shown in the admin.
- type (required): the field type (see the list above).
- description: help text shown below the field. Write it for the store owner, so it is clear what the field does in the store.
- placeholder: placeholder text in the input field.
- default: the default value for text, longtext, richtext, number, decimal, link, date, and datetime.
- default_value: the default value for color. Without a default value, the color picker starts at black.
- options: the options for the list and multi types (an object with key/value pairs).
- searchable: products only. Text, list, and multi fields are automatically included in the store's internal search. Set "searchable": false to keep a field out.
- min and max: the minimum and maximum value for number and decimal. A number field cannot go below 0.
- content_type: only for content_entry and content_entries. The key of the content type the entries are chosen from, for example "content_type": "opskrift". The key is shown on the content type in the admin and cannot be changed, so the theme keeps working even if the store owner renames the type.
The default value is filled in in the admin and is only saved when the product or page is saved. Until then, the field has no value in templates, so make sure the theme also works when the field is empty.
For theme developers: using the data in templates
In Smarty templates, you get the values with the method getExtensionValue('field_id'). The method is available on products, categories, landing pages, static pages, and blog posts. If the field is not filled in, it returns false. A bool field gives true or false, a number field an integer, a decimal field a decimal number, a link field and a video field the address as text, an image field an image, and images and multi fields a list. The reference fields give you the selected content directly: product, category, and content_entry give one object, and products, categories, and content_entries give a list in the order they were selected in the admin.
Simple text value:
<{$product->getExtensionValue('youtube_id')}>
Conditional display (bool):
<{if $product->getExtensionValue('show_badge')}>
<span style="background:<{$product->getExtensionValue('badge-bg')}>; color:<{$product->getExtensionValue('badge-color')}>">
<{$product->getExtensionValue('badge')|escape}>
</span>
<{/if}>
Single image:
<{if $img = $product->getExtensionValue('img')}>
<img src="<{$img->getSrc(400, 400, 'fit')}>">
<{/if}>
Multiple images (gallery):
<{foreach $product->getExtensionValue('gallery') as $image}>
<img src="<{$image->getSrc(200, 200, 'box')}>">
<{/foreach}>
Date with formatting:
<{$product->getExtensionValue('release_date')|date_format:'%d/%m/%Y'}>
Reference to an entry (for example, a recipe selected on a blog post):
<{* extensions/blog_post.json: {"id": "opskrift", "title": "Recipe", "type": "content_entry", "content_type": "opskrift"} *}>
<{if $opskrift = $blog_post->getExtensionValue('opskrift')}>
<h2><{$opskrift->getTitle()|escape}></h2>
<p>Preparation time: <{$opskrift->getValue('tilberedningstid')|escape}> min.</p>
<{if $opskrift->hasUrl()}>
<a href="<{$opskrift->getUrl()}>">See the full recipe</a>
<{/if}>
<{/if}>
Multiple products (products):
<{if $tilbehoer = $product->getExtensionValue('tilbehoer')}>
<{foreach $tilbehoer as $p}>
<a href="<{$p->getUrl()}>"><{$p->getName()|escape}></a>
<{/foreach}>
<{/if}>
You get the entry's fields by the field's key with getValue('field_key'). Read more about showing content types in a theme in the developer documentation.
If you remove a field from the JSON file, the saved values remain. The field disappears from the admin and from the REST API, but getExtensionValue() can still read the value. So also remove its use in the templates if the field should no longer have an effect.
Repeating fields (repeater)
Repeater fields let you add a dynamic number of groups of fields. This is useful for, say, a list of features, specifications, or benefits of a product, where each item can have its own title, description, and possibly an icon.
JSON definition of a repeater field:
{
"title": "Features",
"id": "features",
"type": "repeater",
"field_title": "Feature",
"description": "Add features to the product",
"fields": [
{ "id": "title", "type": "text", "title": "Title", "placeholder": "E.g.: Waterproof" },
{ "id": "description", "type": "longtext", "title": "Description" },
{ "id": "icon", "type": "image", "title": "Icon" }
]
}
Repeater fields have these extra properties:
- fields: an array of subfields (supports text, richtext, longtext, number, image, images, and video).
- field_title: the title shown for each item in the admin (for example, "Feature").
In the admin, repeater fields are shown as cards that can be added, deleted, and moved with drag and drop. As the store owner, you click the "Add" button to create a new item and fill in the subfields.
Using repeater data in templates:
<{foreach $product->getExtensionValue('features') as $feature}>
<h3><{$feature.title|escape}></h3>
<p><{$feature.description|escape|nl2br}></p>
<{if $feature.icon}>
<img src="<{$feature.icon->getSrc(64, 64, 'fit')}>">
<{/if}>
<{/foreach}>
A subfield of the type images gives a list of images in the order the store owner has chosen, and a subfield of the type video gives the video's address as text:
<{* repeater "steps" with the subfields photos (images) and video (video) *}>
<{foreach $product->getExtensionValue('steps') as $step}>
<{foreach $step.photos as $photo}>
<img src="<{$photo->getSrc(300, 300, 'box')}>" alt="<{$photo->getDescription()|escape}>">
<{/foreach}>
<{if $step.video}>
<video controls playsinline preload="metadata" src="<{$step.video|escape}>"></video>
<{/if}>
<{/foreach}>
Theme settings on other object types
The fields do not only work on products. The theme can define fields for several object types, and the getExtensionValue() method is available on all supported objects:
- Categories: defined in extensions/category.json. Usage: $category->getExtensionValue('field_id')
- Landing pages: defined in extensions/landing_page.json. Usage: $landing_page->getExtensionValue('field_id')
- Static pages: defined in extensions/static_page.json. Usage: $page->getExtensionValue('field_id')
- Blog posts: defined in extensions/blog_post.json. Usage: $blog_post->getExtensionValue('field_id')
The JSON structure and the field types are identical for all object types.
For developers: REST API
The fields can also be read and written through the REST API in the extension_data field on products, categories, blog posts, static pages, and landing pages. Only fields defined in the theme's JSON file are included. This is practical when many products need the same field filled in. The reference fields are read and written as IDs, and the plural types as a list of IDs. A gallery subfield in a repeated row is read as a list of URLs and written as a list in the same form as an image subfield. The list replaces the gallery, and URLs from GET are kept. A video field is read as the video's URL and written as the URL, {"library_video_id": 12}, or an upload, which is added to the Video Archive.
AJAX filtering with extension fields
Products can be filtered by the values through AJAX filtering. This lets you build filters in your store based on theme-specific fields.
The syntax uses extension. as a prefix in the URL parameters:
?extension.youtube_id=abc123 ?extension.show_badge=1
This lets theme developers build advanced filtering experiences tailored to each store's needs.
Tip for theme developers
Use descriptive and unique IDs for your fields, for example youtube_id instead of just id. Give the fields a title and a description in the store's language, so the store owner knows what the field is used for and where it is shown. Read more about variables in Shoporama themes for a complete overview of the available template data.
Frequently asked questions
Where did "Extensions from your theme" go on the product page?
The card is now called Theme settings and is located between the Fields and Internal search cards. The name has changed everywhere: on products, categories, static pages, landing pages, and blog posts. The fields and your saved values are the same as before, unless your theme has removed a field.
I use Montana and cannot see Theme settings on my categories. Is something wrong?
No. Montana and MontanaB2B only have fields on products, and the card is only shown when the theme has fields for that type of page. The fields on categories and pages have been removed because the theme did not use them for anything. What you had saved there before is not deleted.
We had set some products to Pickup only in Montana. What happens now?
The field only showed the text "Pickup only" next to the stock status on the product page. It did not hide the other shipping options at checkout, so customers could still choose delivery. That is why the field has been removed, and the text is no longer shown. If a product should only be available for pickup, state it clearly in the description, and contact support@shoporama.dk if you are unsure about your shipping setup.
Where do I find the YouTube video ID?
Open the video on YouTube, and copy the part of the address that comes after v=. In youtube.com/watch?v=dQw4w9WgXcQ the ID is dQw4w9WgXcQ. Paste only the ID, not the whole link. In Montana, the video is shown in the product's image gallery.
Can I fill in Theme settings on many products at once?
In the admin, you fill in the fields on each product. If many products need the same value, such as the same badge, you can do it through the REST API or with Claude, if you control your store with AI. If you copy a product, the fields are copied with it.
I removed a field from my extensions file. Is the data gone?
No. The values remain, but the field is no longer shown in the admin or in the REST API. Templates can still read the value with getExtensionValue(), so also remove its use in the theme. If you add the field again with the same id, the old values show up again.
What is the difference between Theme settings and extra fields?
The fields in Theme settings are ready-made fields from the theme with a title, an explanation, and a fixed place in the store. Extra fields are your own keys and values, which you enter in the Fields card, and they are only shown when a theme or a feed retrieves them. Read more in Extended fields.
Do you have questions about Theme settings and theme extensions? Contact us at support@shoporama.dk.
Related articles
Theme settings: how to customize your Shoporama theme
Theme settings are your theme's own control panel in Shoporama. Change colors, texts, images, and on/off features without code, and learn what the...
Extended fields: extra fields and HTML fields on products
How to use the Fields card on products in Shoporama: extra fields, Google Shopping custom labels, HTML fields, and the fields from your theme.
Themes: create and edit your own theme templates in Smarty 2
The Themes page lets you create your own versions of individual files in your theme and split test them. See how it works, and why it is only...
Code editor: edit theme files directly in admin
The code editor lets you edit your theme's HTML, CSS, and JavaScript files directly in admin. See which theme your customers see, make a copy of a...
Smarty template variables in Shoporama themes
Overview of the global and page-specific Smarty variables available in Shoporama themes, such as the cart, customer, campaigns, products, and...
Content types: create custom content with your own fields
Create your own types of content, such as recipes with prep time and ingredients, and decide the fields yourself. See how to add entries, give them...
Related features
Custom field (extra field)
A custom field (extra field) stores your own data on products. Learn about custom fields, product feeds, and how to tailor your online store to...
Full design freedom: your design, your rules
Design your online store freely with full access to HTML, CSS, and templates. Use ready-made themes, the drag-and-drop Page designer, or build from...
Extended fields (extra fields)
Create custom fields on products in Shoporama. Store anything from ISBNs to YouTube links, Google Shopping custom labels, and PriceRunner categories.