Endless flexibility with extra fields
Not all products fit into the same fields. That's why Shoporama's extra fields allow you to create your very own fields with a key and value of your choice. This gives you full control over what information is stored on each product - and how it's used in your theme, feeds and integrations.
How it works
Extra fields are defined in the key=value format with one field per line. The fields can contain anything from simple text values to data that controls advanced functionality in your theme.
Examples of extra fields:
ISBN=9788711394441 youtube=dQw4w9WgXcQ color=Red material=Cotton size guide=ladies clothing
Use in your theme
All extra fields are available in your Smarty theme via methods on the product object. You can retrieve a single value or all values at once:
<{$product->getMetaValue("youtube")}> <{foreach $product->getMetaValues() as $key => $value}> <{$key}>: <{$value}> <{/foreach}>
This makes it possible to display YouTube videos, size guides, technical specifications or anything else directly on the product page.
Google Shopping and feeds
Extra fields are also used to control your product feeds. Some important fields:
- google-custom-label-2 to google-custom-label-4 - Custom labels for Google Merchant Center rules
- pricerunner-category - Specific category for PriceRunner feed
- redirect - Redirect the user after adding to cart
Note that custom_label_0 and custom_label_1 are automatically used for "discounted" and "bestseller" in the Google Shopping feed.
Import and export
Extra fields can be imported and exported via CSV. When importing, the fields are specified in URL format:
farve=Rød&materiale=Bomuld&ISBN=9788711394441
This makes it easy to update extra fields for many products at once via a spreadsheet.
Bulk editing
You can also edit extra fields in bulk directly in the admin panel. Select multiple products, enter the field name and value and choose whether to add/replace or delete the field. This saves time when you need to update many products.
HTML fields
In addition to extra fields, Shoporama also offers HTML fields. These fields can contain formatted HTML code and are used to display rich content on the product page, such as tabular size guides, embedded videos or JavaScript widgets.
Available on many objects
Extra fields are not limited to products. You can also use them on:
- Categories - Store extra metadata on categories
- Landing pages - Control layout and display with extra fields
- Info pages - Add custom data to static pages
- Blog posts - Use extra fields to control display and functionality