The External and web data section adds information to your rules that isn't in the supplier's feed: daily ECB exchange rates and public holidays as variables. The Web data feature takes the name, description, images, EAN or brand from product pages so you can fill in missing fields.
What the feature does
A supplier's feed contains only what the supplier put into it. Sometimes, though, you need more:
- An exchange rate – a tent costs €129 and you want it in Czech koruna for Czechia at the current rate.
- Holidays – before Easter, delivery takes one day longer and you want that reflected in the feed.
- Missing data – the supplier sends neither descriptions nor images, even though it has them on its website.
The External and web data section has two parts for this:
- External data in rules – ECB exchange rates and public holidays as variables. A variable is a named value that changes by itself, for example "today's koruna exchange rate". In a rule you use it as a value, in a calculation or in a condition.
- Web data – data from product pages is saved into a table. You then fill it into your products with a rule.
Where to find it
In the menu, in the Input group, click External data. The External data and web page opens, with the tabs All, Shop website, Competitors and Schedule. On the Competitors tab you see the competitor price sources from SortyPricing; on the Schedule tab, when each kind of data was last refreshed. Exchange rates and public holidays can be switched on by the team's owner or an administrator.
Step by step: exchange rates and holidays
- On the External data in rules card, switch on ECB exchange rates.
- In Currencies (comma-separated), type the three-letter codes, for example
CZK, HUF, PLN. - Switch on Public holidays and in Country (code) enter the two-letter code, for example
SK. - Click Save.
- On the Current values card you see the variables and their values, for example
VAR:KURZ_CZK. The Refresh now button downloads them straight away. - Use the variable in a rule (see Rules).
Available variables:
| Variable | What it contains |
|---|---|
VAR:KURZ_CZK (and other currencies) | the daily ECB reference rate against the euro |
VAR:SVIATOK_DNES | 1 if today is a public holiday, otherwise 0 |
VAR:SVIATOK_ZAJTRA | 1 if tomorrow is a public holiday, otherwise 0 |
VAR:DNI_DO_SVIATKU | number of days until the next holiday |
VAR:NAZOV_SVIATKU | name of the next holiday |
How to write a variable
- As a value – for example the text
Delivered after %VAR:NAZOV_SVIATKU%. - In a calculation – for example the price in koruna:
PRICE_VAT * [VAR:KURZ_CZK]. - In a condition – the rule applies only if the
VAR:DNI_DO_SVIATKUfield is less than 2.
The values are refreshed every hour. The output is recalculated only when a value that your rule actually uses changes. So if you only use the koruna rate, a change in the forint rate won't recalculate anything.
Step by step: Web data
- On the Read product pages card (the Add external source button in the top bar opens it too), choose the Product source – the supplier whose products you want to complete.
- In Page URL, choose how the product page address is determined:
- from a product field – and in Field with the URL give the field containing the link, usually
URL, - from a template – and in URL template build the address, for example
https://dodavatel.sortyra.com/p/{CODE}orhttps://dodavatel.sortyra.com/hladat?q={EAN}.
- In Key (product field), choose the field that will later be used to match the data to products, for example
CODEorEAN. It must be unique for each product. - Set Max. pages. Start with a smaller number, for example 50, and check that the data is right.
- Click Fetch data.
- On the Web data card, watch the status (fetching, done), Pages processed and the summary: With data, No data, Blocked by website rules and Rows in the table.
- You can look at the result with the Download CSV button. The Update now button reads the pages again.
- In Rules, create an Import from another source rule with the web data table and the key. Assign fields such as
WEB_DESCRIPTION,WEB_IMAGEorWEB_EANto product fields. You can choose whether only empty values are filled in or existing ones are overwritten too.
From a page you can get the name, description, images, EAN, brand, price and category – provided the page gives them in structured form.
Rules for polite fetching
- Only public pages are fetched, in line with the website's rules and without overloading it.
- Nothing about you or your products is sent anywhere.
- Web data is for completing your own products. Competitor prices are not collected this way – you upload those as described in Prices and competition.
Examples
- Prices for Czechia with a mark-up: the calculation
PRICE_VAT * [VAR:KURZ_CZK] * 1.05. - Longer delivery time before a holiday: if
VAR:SVIATOK_ZAJTRAis 1, the rule adds one day to the delivery time. - Countdown to a holiday: the label "Order now for delivery before Christmas" while
VAR:DNI_DO_SVIATKUis greater than 3. - Empty descriptions: sleeping bags from a supplier with no description get the description from its product page via
WEB_DESCRIPTION. - Missing EAN for a comparison site: web data is one of the sources of suggestions in Product matching with comparison sites.
Tips and common mistakes
- Write codes in capital letters –
CZK, notczk; countrySK, notSlovakia. - Start with a small sample. With Web data, start with a few dozen pages and check the CSV.
- The key must match. If the rule uses a different key from the one the data was fetched with, the data won't be assigned to products.
- Don't overwrite good data. In the rule, keep "fill in empty values only" if the supplier does send some descriptions.
Frequently asked questions
How often are ECB rates refreshed?
Sortyra checks the values every hour. The ECB reference rate itself changes once per working day.
Why wasn't the output recalculated after the exchange rate changed?
The output is recalculated only if one of its rules uses that variable and its value has changed.
Can I use Web data to monitor competitor prices?
No. The feature is for completing your own product data. You upload competitor prices from your own monitoring or from a comparison site report.
What if the supplier's website doesn't allow fetching?
Those pages are skipped and you'll see them in the summary under Blocked by website rules. In that case, fill in the data another way, for example with AI content.