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.
Extended fields let you store extra information on your products beyond the name, price, and description. This could be an ISBN, a material, a size guide, or a custom label for Google Shopping. On the product, you find the fields in the Fields card, and your theme decides where and how they are shown in the store.
Where do I find the fields?
When you edit a product, the fields are in the Fields card. The card has two parts: Extra fields and HTML fields. At the bottom of the card, there is a short help text with a link to this article.
Google title, Google description, Google Shopping title, and Google category used to be in the Fields card as well. They now have their own cards, located just above Fields:
- SEO: Google title and description, a preview of how the product appears in Google, keyword analysis, Open Graph, canonical, and noindex. Read more in SEO in Shoporama.
- Product feeds: Google Shopping title, Google category, condition, and whether the product appears in each feed. Read more in Set up a Google Shopping feed.
Just below Fields is the Theme settings card (previously called "Extensions from your theme") with the fields your theme has defined itself. You can read about them further down.
Extra fields
In the Extra fields field, you enter one piece of information per line in the format key=value. The key is the name of the information, and the value is the content itself:
isbn=1234567890 material=100% organic cotton origin=Portugal
Your theme can show the fields on the product page. In Montana and MontanaB2B, extra fields with a value are shown automatically in the "Product details" table on the product page, except custom labels for Google Shopping. Other themes only show the fields the theme is built to read. If you use your own theme, your developer can show exactly the fields you need.
A few things are good to know:
- The key is saved in lowercase. If you enter ISBN=1234567890, it is saved as isbn=1234567890. The value is saved exactly as you type it.
- Lines without a key before the equals sign and empty lines are removed when you save.
- Use the same keys on all products, for example always material rather than switching between "material" and "fabric". That way, your theme and your feeds can rely on them.
- If many products need extra fields, you can import them via CSV in the extra_fields column. See Import extra fields on products.
Google Shopping custom labels
Below Extra fields is the collapsed box Google Shopping Custom Labels. Custom labels are used for rules and campaigns in Google Merchant Center and Google Ads, for example to bid higher on seasonal products. You write them as regular extra fields:
google-custom-label-2=summer google-custom-label-3=high margin google-custom-label-4=own import

Shoporama sets labels 0 and 1 itself to "nedsat" (on sale) and "bestseller", so you can't fill them in here. If the product is assigned a product label that fills in the same custom label, the product label wins, and the extra field is ignored. If many products need the same value, product labels are therefore often the easiest option. Montana and MontanaB2B skip fields that start with google-custom-label- in "Product details", so customers don't see your custom labels.
HTML fields
You use HTML fields for content that requires HTML code, such as a size chart, an embedded video, or a script that should only run on this one product. Here is how to create one:
- Click Add new HTML field in the Fields card.
- Enter a Field name without spaces, for example sizechart, and click Add field.
- Paste your HTML into the field.
- Choose a Location: "Don't add automatically" if your theme should show the field itself, or "Insert at the end of <head>" or "Insert at the end of <body>" if the code should be inserted automatically on the product's page.
- Save the product.
To delete an HTML field, empty the field and save. If the code should be used on every page in the store, for example for Cookiebot or Google Tag Manager, it belongs in the store's own HTML fields. Read more in HTML fields: Add Cookiebot, GTM, and other scripts.
Theme settings: fields from your theme
The Theme settings card contains the fields your theme has defined, such as video, badge, and add-ons in Montana. The card is available on products, categories, landing pages, blog posts, and static pages, but is only shown when your theme actually has fields for that type. The fields can be, for example, text, long text, text editor, number, checkbox, color, date, dropdown, multiple choice, images, and repeatable items.
For image fields, you can upload an image or click Select from image archive and pick it from your image archive. This also applies to images in repeatable items, including rows you have just added. You can also drag an image onto the button, and it is added to the archive. Your choice is shown as a small thumbnail and is saved when you save the page. The image is borrowed from the archive, so the file is only stored in one place.
The difference between Theme settings and Extra fields is that the theme has decided in advance which fields exist in Theme settings and how they are shown. In Extra fields, you decide the keys yourself. Read more in Theme settings on products and pages.
Exporting the fields
Extra fields are included when you export products under Products → Import/export. In the CSV export, they are in the extra-fields column, and in the JSON export, they are under meta on each product.
The fields from Theme settings are included in the JSON export under extension_data. Each field contains the field's title, type, ID, and value, and image fields are included as ready-to-use image URLs. If you fetch products through the REST API, you get the fields from Theme settings in the same format.
For developers: Use the fields in your theme
This section is for you if you develop or customize a theme. In the product template, you read a single extra field with $product->getMetaValue('key') and all fields with $product->getMetaValues(). You fetch an HTML field with the location "Don't add automatically" with $product->getHtmlField('fieldname').
<{* One specific field *}>
<{if $product->getMetaValue('isbn')}>
<p>ISBN: <{$product->getMetaValue('isbn')|escape}></p>
<{/if}>
<{* All fields as a table *}>
<{$metaValues = $product->getMetaValues()}>
<{foreach $metaValues as $key => $value}>
<{* Skip custom labels for Google Shopping *}>
<{if $value && $key|truncate:19:"":true != 'google-custom-label'}>
<tr><td><{$key|escape}></td><td><{$value|escape}></td></tr>
<{/if}>
<{/foreach}>
<{* An HTML field *}>
<{$product->getHtmlField('sizechart')}>
- getMetaValue() ignores uppercase and lowercase in the key, and it returns nothing if the field doesn't exist.
- On products, shortcodes such as [NAME], [PRICE], and [BRAND] in the values are filled in when you read them in the theme.
- If you show all fields with getMetaValues(), technical keys such as google-custom-label-2 are included too. Skip them in the loop as in the example, so they aren't shown to customers. Montana and MontanaB2B do this as well.
- Categories, pages, landing pages, and blog posts also have getMetaValue() and getMetaValues().
- Through the REST API, you write extra fields in the meta field as the same key=value text with one line per field. This replaces all existing lines.
Frequently asked questions
Where did Google title and Google category go?
They are no longer in the Fields card. You find Google title, description, Open Graph, canonical, and noindex in the SEO card. You find Google Shopping title, Google category, condition, and feed visibility in the Product feeds card. Your saved values are the same as before.
I have added an extra field, but it doesn't show in my store. Why?
The theme decides whether and where extra fields are shown. Montana and MontanaB2B show all fields with a value under "Product details", except custom labels for Google Shopping. Other themes only show the fields they are built for. Also check that the line has the format key=value and that you have saved the product.
What is the difference between extra fields and profile attributes?
Profile attributes belong to the product's profile, so all products with the same profile have the same fields, and they can be used for variants and filtering. Extra fields are free text on the individual product, and you decide the keys yourself. Use attributes for fixed properties such as color and size, and extra fields for one-off information.
Can customers see my Google Shopping custom labels?
No, not in the standard themes. Montana and MontanaB2B show extra fields under "Product details", but skip fields that start with google-custom-label-. The other standard themes only show the fields they are built for. However, if you have your own theme or a customized copy of a standard theme that shows all extra fields, they may be shown. In that case, your developer can skip them, or you can use product labels with a Google Shopping custom label instead.
Can I edit extra fields on many products at once?
Yes, with a CSV import. Create a column called extra_fields, and write the fields in URL format, for example isbn=1234567890&material=cotton. The import adds or changes the fields in the file and leaves the product's other extra fields alone. See Import extra fields on products.
When should I use an HTML field instead of the product description?
Use the description for regular text and images. Use an HTML field when you have code the text editor can't handle, such as a script, or when your theme should show the content in a specific place, such as a size chart in a tab. HTML fields placed in <head> or <body> are only inserted on this particular product's page.
What happens if I change themes?
Your extra fields and HTML fields stay on the products, regardless of theme. The new theme simply shows them in its own way or not at all. The same applies to data in Theme settings: it isn't deleted, but a different theme typically uses different fields.
If you have questions about extended fields, feel free to contact us at support@shoporama.dk.
Related articles
Optimize images for mobile with responsive images
A guide to using responsive images with srcset in your Shoporama theme, so mobile users get optimized images.
Show out-of-stock variants in your theme
How to show sold-out product variants in your Shoporama theme, so customers can see your full range and sign up for back-in-stock notifications.
Unsubscribe links in automated emails
Let your customers unsubscribe from automated emails, such as follow-ups after purchase and product review requests, with a single link in the email.
REST API: authentication, endpoints, and the API log
A complete guide to Shoporama's REST API: authentication, API keys and user roles, all endpoints, examples, the Swagger documentation, and the API...
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...
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.
Related products: increase your upselling
Show related products manually, automatically based on purchase data, or through recommendation engines. Increase upselling and cross-selling in...