Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Build your own custom product feeds in CSV, XML, or JSON

A guide to building your own product feeds in CSV, XML, or JSON format with Shoporama's custom feed feature.

Reading time: about 31 minutes
Store owner

What are custom feeds?

Custom feeds let you build your own product data files in CSV, XML, or JSON format. You decide which fields to include, what they are called, and which products are included. This is ideal for integrating with external systems, price comparison sites, affiliate networks, or other services that need product data in a specific format.

You find the feature under Products → Product feeds in the admin.

Create a new feed

  1. Go to Products → Product feeds.
  2. Click Create new feed.
  3. Give your feed a name and choose a format: XML, JSON, or CSV. The format cannot be changed after the feed is created.
  4. Click Create feed. You are taken to the edit page.

Edit your feed

On the edit page, you can configure every aspect of your feed:

General

  • Name: an internal name that identifies the feed.
  • URL slug: the part of the URL used to access the feed (generated automatically from the name).
  • Online/Offline: whether the feed is publicly available.
  • Expand variants: when enabled, each product variant gets its own row in the feed.
  • Add currency after prices: adds the currency after every price in the feed, for example 123.00 DKK instead of 123. This is the format Google Merchant Center describes in its specification. The switch applies to the sale prices, the variant prices, and the cost price. If a product has no price, for example no sale price, the field stays empty.

Choose products (data source)

You can choose which products to include in the feed:

  • All products: every product in your store.
  • Categories: only products from selected categories.
  • Landing pages: only products on selected landing pages.
  • Product labels: only products with specific labels.

Product filters

You can filter the products further:

  • Available for purchase: leaves out products that are sold out. Products that may still be sold at a stock level of 0 stay in the feed.
  • With image only: leaves out products without images.
  • Only with price > 0: leaves out products without a price.

Product fields

Choose which fields to include in your feed. You can rename the fields to match the recipient's requirements. Drag the rows to change the order.

Available fields include:

  • Product ID, SKU, GTIN, MPN: product identification.
  • Name, description (HTML and plain text): product texts.
  • Price (before discount), current price, sale price: price information. Sale prices are always delivered including VAT, which is also stated in the field name.
  • Product URL, image URL, all image URLs: links and images.
  • Brand, supplier, categories: classification.
  • Stock status, stock quantity, weight: stock and shipping.
  • Related and similar product IDs and SKUs: product relations.
  • Cost (excluding VAT): your purchase price. It is under Internal fields in the field picker because it is confidential. Read the section on cost prices further down before you use it.
  • Product attributes: your own profile attributes, such as season, color, material, or gender. They appear in the field picker with the names you gave them.
  • Extra fields: the extra fields you have filled in on your products. Shoporama automatically suggests the fields that exist on your products, and you can always type a field name yourself if a field is missing from the list.

If you enable Expand variants, you also get access to variant-specific fields such as variant SKU, variant GTIN, variant price, and variant stock quantity.

Feed-level fields (XML and JSON only)

For XML and JSON feeds, you can add global fields that appear at the root level:

  • Shop URL, shop name, currency, language: store information.
  • Generation time, number of products: feed metadata.
  • Free text (custom value): any text you enter yourself.

Format settings

  • XML: Under Structure, you choose Custom root and product elements or RSS 2.0 (Google Merchant Center). If you choose your own, you name the root element (default: products) and the product element (default: product) yourself. With RSS 2.0, the feed gets the structure Google requires, and the root and product element fields are hidden. Your names are saved in case you switch back. Under Advanced, you can add XML namespaces and turn on CDATA for HTML fields.
  • CSV: Separator (; or ,) and whether to include the header row.
  • JSON: Uses pretty formatting with Unicode support automatically.

Create a feed for Google Merchant Center

If your feed is XML, Google Merchant Center only accepts it if it is structured as RSS 2.0 or Atom. A feed with your own root and product elements is rejected with the error XML formatting error, and 0 products are updated, even though the file itself is fine. So choose RSS 2.0 when the feed is going to Google.

If you just need a standard Google Shopping feed, the built-in feed is the easiest option. Read Set up your Google Shopping feed. Build your own when you want to decide the fields yourself, for example to include your cost price.

  1. Create a feed with the XML format.
  2. Choose RSS 2.0 (Google Merchant Center) under Structure in the XML settings card. Google's namespace g: is included automatically.
  3. Turn on Add currency after prices in the General card. Leave Expand variants turned off, or all variants of a product get the same product ID.
  4. Go to the Product fields card. A new feed starts with two rows, id and name. Change their Tag name to g:id and g:title. Then click Add field for each of the other fields, choose the field under Data source, and enter Google's name as the tag name:
    • g:description: Description (text)
    • g:link: Product URL
    • g:image_link: Image URL (primary)
    • g:price: Price before discount (incl. VAT)
    • g:sale_price: Sale price (incl. VAT). If the product has no sale price, the field is empty.
    • g:brand: Brand
    • g:gtin: GTIN/EAN
  5. Google also needs g:availability. The In stock (true/false) field writes true and false, which Google does not understand. Instead, add a field with the tag name g:availability, choose Fixed value (the same for all products) under Data source, and enter in_stock under Value. Then check Available for purchase in the Product filters card, so only products the customer can buy are included.
  6. If you want to include your cost price, add Cost (excluding VAT) with the tag name g:cost_of_goods_sold, and protect the feed with Username and password as described below.
  7. Click Save and then Build feed now. Copy the address with Copy URL, and submit it in Merchant Center, along with the username and password if the feed is protected.
The edit page for a product feed under Products, Product feeds. In the General card, the Add currency after prices switch is turned on and highlighted. Under Product filters, Available for purchase is checked. In the XML settings card, Structure is set to RSS 2.0 (Google Merchant Center) and highlighted. On the right, access is set to Username and password.
A feed for Google Merchant Center: choose RSS 2.0 under Structure, and turn on Add currency after prices. If your cost price is in the feed, use Username and password as the access method.

If you have already submitted a feed that was rejected, change the structure, click Save, and click Build feed now. Then ask Merchant Center to fetch the feed again, so you do not have to wait for Google's next scheduled fetch.

Feed URL and access

When your feed is online, it is available at a public address:

https://yourstore.com/feed/your-feed.xml
https://yourstore.com/feed/your-feed.json
https://yourstore.com/feed/your-feed.csv

The Feed URL box on the right side of the page shows who can fetch the feed. Click Change to choose between three options:

  • Open to everyone: anyone who knows the address can fetch the feed. Fine for ordinary product data.
  • Secret URL: Shoporama adds a long, random key to the address, so it cannot be guessed. Without the correct address, the response is 404. This is the easiest option, and it works in all feed tools.
  • Username and password: the feed requires a login, just like a protected page. This is the most secure option, and it is supported by Channable, Google Merchant Center, and Meta, among others.

With a secret URL, the address looks like this:

https://yourstore.com/feed/your-feed-k7f3p9x2q4.xml

Which one should I choose? A secret URL is easy to pass on, but the address ends up in browser history and in log files on both your side and the recipient's. If the feed contains anything that must not leak, choose username and password. The password requires your store to run on https.

If you choose a password, Shoporama generates it for you, and you can view and copy it in the same place. You then enter the feed's address, the username, and the password in your feed tool.

Not the same as feed keys: Under Webshop, Feeds, there is a setting called Feed keys. It applies to Google Shopping, Pricerunner, Partner-Ads, and the other built-in feeds. Your own product feeds are protected on each individual feed, as described here. Read more in Protect your feeds with feed keys.

Build and preview

Use the Build feed now button to generate the feed. You can also click Preview to see the result with live data.

Feeds that are online are rebuilt automatically every hour, so your product data is always up to date.

How the feed stays up to date

The feed URL does not fetch data at the moment someone opens it. It delivers the file that was written the last time the feed was built. That is why a feed responds very quickly, even when it contains tens of thousands of products. On the other hand, a change is only visible to others once the feed has been built again.

The feed is built in two ways:

  • Automatically once an hour. The run builds all feeds that are set to Online. It does not necessarily run on the hour, so expect a delay of up to an hour.
  • Manually, when you ask for it. See the section below.

Two things are worth remembering:

  • Saving is not the same as building. When you save new fields, filters, or data sources, the setup is saved right away, but the file behind the feed URL is still the old one until the feed is built again.
  • The automatic run only applies to stores that are live. If your store is still a demo, your feeds are not built automatically. You can still build them manually and test them in the meantime.

Build the feed manually

You do not have to wait for the next automatic run. You can build the feed from two places:

  • On the edit page, the Build feed box is on the right side. Click Build feed now, and the feed is built right away.
  • On the overview, check one or more feeds and click Rebuild selected. The feeds are built one at a time, and the button counts up along the way, for example 3/8.

Always save your changes first. Both buttons build from the saved setup, not from what you have just typed in the form.

Build manually when you:

  • Have just changed fields, filters, or data sources and want to see the result in the actual file.
  • Have updated prices or stock on many products and do not want to wait an hour.
  • Need to send the feed URL to a partner for the first time.

The confirmation on the screen is not in itself proof that the feed was built. Look at the time under Last built instead. If it has not jumped forward to right now, the feed was not built, and the cause is almost always one of those in the troubleshooting section below.

Preview the feed

There are two different previews on the edit page, and each answers its own question.

Structure preview: does the structure look right?

Below the field table is the Structure preview box. It shows the skeleton of your feed with your own tag names and keys, and with ... instead of real product data. It updates itself as you add, rename, or move fields, and you do not need to save first.

Use it to compare the structure with the specification you received from the recipient: are the fields named exactly what they should be, are they in the right order, and are fields with multiple values, such as images and categories, wrapped the way the recipient expects?

Preview: is the content right?

The Preview button in the Build feed box opens the feed in a new tab with real product data from your store. It is the fastest way to check that the prices are right, that the image addresses work, and that the descriptions look sensible. There are four things to know about the preview:

  • The preview is built on the spot and is not saved. It changes neither the file behind the feed URL nor the time under Last built.
  • The preview requires you to be logged in to the admin. The link therefore does not work for a partner or an agency. Send them the feed URL instead.
  • The preview builds the whole feed in one go. If you have a large catalog, the tab can take a long time to respond. The automatic run works in smaller batches and does not have that problem.
  • The preview always shows the saved setup and the current product data. The file behind the feed URL only catches up once the feed has been built.

Small cosmetic differences between the preview and the built file are normal. The order of the products can differ, and JSON feeds are formatted with more whitespace in the preview than in the file. The content per product is the same.

See when the feed was last built

The answer is under Last built, which you find in two places:

  • On the overview under Products → Product feeds, each feed has a Last built column with date and time. If it shows a dash, the feed has never been built.
  • On the edit page, the same time is shown in the Build feed box. If the feed has never been built, it says The feed has not been built yet instead.

The time is only set once the feed has finished building and the file has been written. If a feed is online and the time is more than a couple of hours old, something is wrong.

Troubleshooting: the feed is not updating

Always start in the same place: open the feed, note the time under Last built, click Build feed now, and see whether the time moves. Then you know right away whether the feed is being built at all, or whether the content is what is wrong.

Last built does not move

Then the feed never finished being written. The common causes are:

  • The feed has no fields. A feed without at least one field is not built. Add the fields, save, and try again.
  • No products match. If you have chosen a category, a landing page, or a product label with no products in it, there is nothing to build.
  • You have not saved. The button builds from the saved setup. Click Save first, and then build.

If that does not help, write to support@shoporama.dk with the name of the feed and your store's address.

The feed responds "Feed is being generated. Please try again later."

If the feed URL responds like this, the feed has never finished building, so there is no file to deliver:

Feed is being generated. Please try again later.

The recipient gets a temporary error (HTTP 503), which most feed readers retry on their own a little later. The solution is to build the feed manually and then open the URL again.

The feed URL returns 404

  • The feed is set to Offline. Set it online, and build it.
  • The file extension does not match the format. An XML feed must be fetched as .xml, a JSON feed as .json, and a CSV feed as .csv.
  • The slug is misspelled, or it has been changed since you sent the address. Copy the address from the Feed URL box on the edit page.
  • The feed has a secret URL, and the key is missing from the address. Without the correct key, the feed returns 404, even if it is online.

Merchant Center cannot fetch a protected feed

If the feed uses Username and password, it responds with a login error to anyone who does not send them. Check that the username and password from the Feed URL box are entered for the feed in Merchant Center.

Products are missing from the feed

  • The product is not online, or it is in the trash. Only products that are online are included in a feed.
  • A filter excludes it. Temporarily turn off Available for purchase, With image only, and Only with price > 0, build again, and see whether the product shows up.
  • The category is selected, but the product is only in a subcategory. A product only counts in the categories it is placed in directly, so select the subcategories in the data source as well.
  • The data source is a landing page, and the product is not on it. Check the list on the landing page itself.
  • You expect one line per variant. Turn on Expand variants, save, and build again.

The price or stock quantity is out of date

The feed contains the figures that applied when the file was last built. After a price update, a campaign start, or a goods receipt, the feed must be built again before the recipient can see the change. If it is urgent, build manually instead of waiting for the next automatic run.

The preview looks right, but the feed does not

That is the classic sign that the feed has not been built since your change. The preview is built on the spot, while the feed URL delivers the most recently built file. Click Build feed now, and check that the time under Last built moves.

The feed updates less often than once an hour

Very large feeds can take a long time to build. If a run is still in progress when the next one should start, the next one is skipped, and the feeds are only built the hour after. If this becomes a regular pattern, you can trim the feed: remove fields the recipient does not use, add a filter, or build several smaller feeds instead of one large one, for example split by product labels.

Cost prices in the feed

You can include your cost price in the feed, for example if your feed tool needs to calculate the contribution margin and bid accordingly. The cost price is the one you entered under Stock, Cost Prices, and it is excluding VAT. The sale prices in the feed, on the other hand, are including VAT, so remember to take that into account if you compare the two figures.

If you have not filled in a cost price on a product, the column is empty. It does not become a zero, so you can tell the difference between "free" and "unknown".

Important: If you choose cost price in a feed that is open to everyone, Shoporama shows a warning. Anyone who knows the address will be able to see your purchase prices. Turn on a password or a secret URL first.

Tips

  • Use the Preview feature to test your feed before you share the URL.
  • Turn on a password if the feed contains cost prices or anything else confidential.
  • If the feed is going to Google Merchant Center, choose the RSS 2.0 (Google Merchant Center) structure, and turn on Add currency after prices.
  • With expanded variants, you can create feeds where each variant has its own line, which is useful for price comparison sites.

Frequently asked questions

Can I protect my feed with a username and password?

Yes. Click Change next to Access in the Feed URL box and choose Username and password. Shoporama creates the password for you. It requires your store to run on https. Most feed tools, including Channable, Google Merchant Center, and Meta, have fields for a username and password when you create the feed with them.

Can I put my purchase prices in a feed?

Yes, but protect the feed first. If you choose cost price in an open feed, Shoporama warns you right away. If you have already shared an open feed address, turn on a password and send the new address to the recipient.

Merchant Center says "XML formatting error" and updates 0 products. What is wrong?

The feed most likely has your own root and product elements. Choose RSS 2.0 (Google Merchant Center) under Structure, save, build the feed, and ask Merchant Center to fetch it again.

Can I send my cost price to Google?

Yes, in your own feed. See step 6 in the Google Merchant Center section above. The built-in Google Shopping feed does not include cost prices.

I cannot find one of my extra fields in the list. What do I do?

The list of extra fields is a suggestion based on your newest products, so a field that only exists on older products may be missing. You can always type the field name yourself in the field picker, and it works anyway.

Why is my product attribute column empty for some products?

Product attributes belong to the profile the product uses. If a product has a different profile where the attribute does not exist, the column is empty for that product. This is not an error in the feed.

I changed the feed and saved, but the file my partner fetches has not changed. What do I do?

You still need to build the feed. Saving only updates the setup. Open the feed, click Build feed now, and check that the time under Last built jumps forward to now. After that, the feed URL delivers the new version. If you do nothing, the change is included in the next automatic run within an hour.

How often does the feed update itself?

Once an hour. This applies to all feeds that are set to Online in a store that is live. If your store is still a demo, or the feed is set to Offline, nothing happens automatically, and you have to click Build feed now yourself.

Can I make the feed build more often than once an hour?

Not as a setting you can change yourself. However, you can build manually as often as you like, and it typically takes a few seconds for an ordinary catalog. If you have a business need for more frequent automatic updates, write to support@shoporama.dk, and we will look into it.

Can I send the preview link to my agency?

No. The preview requires being logged in to your admin, so an external recipient just gets the login page. Send the feed URL from the Feed URL box instead. It is made to be shared, and it delivers exactly the same data.

We have many feeds. Do I have to build them one by one after a large price update?

No. Go to Products → Product feeds, check the feeds it applies to, and click Rebuild selected. They are built one at a time, and the Last built column updates along the way, so you can see which ones are done. If you have several stores, you need to repeat this in each store. If you do not need the feeds right away, you can safely let the automatic run handle it within an hour.

The feed shows products we do not have in stock. How do I remove them?

Set the Available for purchase filter on the feed, save, and build. Note that products that may still be sold at a stock level of 0 are still included, because the customer can actually buy them. Also remember that the stock figures in the feed come from the time the file was last built, so it can take up to an hour from when a product sells out until it shows in the feed.

What does the response "Feed is being generated. Please try again later." mean?

It means the feed has never finished building, so there is no file to deliver yet. This typically happens right after the feed is created, or if the feed has no fields. Add at least one field, save, click Build feed now, and try the URL again.

Can I see a log of what went wrong if a feed is not built?

Not in the admin. What you can see is the time under Last built, and that is also the most important thing: if it stands still, the feed was not built. Go through the troubleshooting list above, and write to support@shoporama.dk if you are stuck, and we will look into it.

Need help making a feed fit a specific recipient? Write to support@shoporama.dk. If you need a ready-made Google Shopping feed, you can use the built-in one instead, which is described in Set up your Google Shopping feed.