Hiperlink Cjenik

Description

From 17 November 2026 every trader in Croatia that has a website must publish its valid price list there as a machine-readable file, and every price must show a base price (“bazna cijena”). The rules are two regulations of the Ministry of Economy, published in Narodne novine 132/2026:

  • Pravilnik o načinu objave cjenika proizvoda: what the file contains, in which order, how it is named, when it is updated and how long old files stay;
  • Pravilnik o isticanju bazne cijene proizvoda: which price is the base price and where it is shown.

Hiperlink Cjenik does both for a WordPress site, with WooCommerce or without it. It follows these regulations, not the earlier temporary Government decision (NN 101/2026, a file every day by 08:00 kept 30 days) that many existing plugins were built for.

What it does

  • The price list file. A CSV (columns separated by semicolons) or an XML file, in UTF-8, with the columns in the order the regulation gives: for goods the name, code, brand, net quantity, unit, retail price, whether it is a sale price, unit price, barcode, EAN and base price; for services the name, retail price, whether it is a sale price and base price. Goods and services are separate files. Optionally .gz or .zip.
  • The file name of the regulation. OIB (legal person) or matični broj (natural person), the type, address and code of the outlet, or ZA_SVA_PRODAJNA_MJESTA when every outlet has the same list (a trader with one outlet chooses either), ROBA or USLUGE, a storage number and the time stamp GGGGMMDD_SSMM in Croatian time, for example 12345678903_ZA_SVA_PRODAJNA_MJESTA_ROBA_7_20261120_0930.csv.
  • Several outlets. One file per outlet, or one file for all of them when their price lists are the same, found automatically.
  • A stable address. Each price list has one address that always gives the current file, for example https://example.hr/cjenik/12345678903_ZA_SVA_PRODAJNA_MJESTA_ROBA.csv.
  • Updated when a price changes, by 11:00. Saving a product, a variation or an item publishes a new file at once, only when something in the list changed. A check every hour finds scheduled sales and prices changed outside WordPress. It works with WP-Cron switched off: a system cron runs wp hiperlink-cjenik check or requests a secret address.
  • A 15-day archive. A replaced file stays at its own address for 15 days (you can choose more), then it is deleted.
  • Open to collectors. The files need no login, set no cookie and are never marked noindex; robots.txt allows them, also on a site hidden from search engines. A button checks that a program can read the file, and tells you when a firewall or a server rule blocks it.
  • Base prices. A base price field on every product, variation and item. The base price shows under every WooCommerce price, on product pages, shop pages and blocks, and in the price list. The plugin records every price change from the day it is installed and fills in the base price itself where that history decides it (a product first offered later). For older items you enter it, import a price history from your till or ERP, or confirm that the current regular price is the base price.
  • Sites without a shop. A list of your own goods and services in the dashboard, with a CSV import and export: a hair salon, a restaurant menu, a craftsman’s services.
  • A price list page. The Price list block or the [hiperlink_cjenik] shortcode shows the published files as tables, with links to the files and the archive.

Which base price

  • Food, drinks, cosmetics, cleaning products, toiletries and household products: the retail price on 2 May 2025, or on the day the item was first offered if that was later. If it was a sale price on that day, the lowest price in the 30 days before the sale began.
  • Other goods and services: the retail price on 10 September 2026, or on the day first offered if later. If it was a sale price on that day, the price before the sale.

Choose the WooCommerce categories that are food-type goods in the settings; a product can also choose its kind itself, or be left out of the price list (for example a price set by a special regulation).

Why a stable address and a time stamp

The regulation asks for both: the changed file is published “at the same URL” as the one it replaces, and its name carries a storage number and a time stamp. Hiperlink Cjenik writes every file once under its full name (it never changes, so it can be archived and cached) and answers the stable address with the current file. That answer names the full file (Content-Disposition), points to its own address (Content-Location) and is never cached, so a collector that always reads the stable address gets the newest list, with its prescribed name.

Light

Visitors’ pages read only the plugin’s small settings: no extra database query, no script and no stylesheet. The work is done when a price changes and once an hour, in the background. No outside service, no cookies, no tracking, no ads in the dashboard.

Quiet mode

With define( 'HIPERLINK_QUIET', true ); in wp-config.php, or the Hide footprints module of Hiperlink Security, the classes of the price list and of the base price get short names made from your site’s security keys instead of hiperlink-cjenik. The file addresses (/cjenik/, uploads/cjenik/) never carry the plugin’s name.

Na hrvatskom

Od 17. studenoga 2026. trgovac koji ima mrežne stranice na njima objavljuje važeći cjenik u strojno čitljivom obliku, a uz svaku cijenu ističe baznu cijenu (Pravilnik o načinu objave cjenika proizvoda i Pravilnik o isticanju bazne cijene proizvoda, NN 132/2026). Dodatak izrađuje CSV datoteku (stupci odvojeni točkom zarezom) ili XML datoteku u UTF-8, redoslijedom stupaca iz pravilnika, zasebno za robu i usluge; naziv datoteke ima OIB ili matični broj, prodajno mjesto ili ZA_SVA_PRODAJNA_MJESTA, broj pohrane i vremensku oznaku GGGGMMDD_SSMM. Datoteka je uvijek na istoj adresi, nova se objavljuje čim se cijena promijeni (i satnom provjerom, za akcije i cijene izvan WordPressa), a stara ostaje 15 dana u arhivi. Bazna cijena prikazuje se uz svaku cijenu u WooCommerceu i na stranici cjenika; dodatak bilježi povijest cijena i sam je upisuje kada je iz povijesti jasna. Radi s WooCommerceom (i varijacijama) i bez njega, s vlastitim popisom robe i usluga i uvozom iz CSV-a. Dodatak je na engleskom, a tekstovi koje vide kupci (natpis „Bazna cijena”, stranica cjenika, stupci datoteke) na hrvatskom su, kako ih nazivaju pravilnici.

Made by Hiperlink Digital, a web agency from Croatia.

This plugin helps you follow the regulations; it is not legal advice. Check the base prices it shows, and the guidance of the Ministry of Economy (MINGO).

Screenshots

Blocks

This plugin provides 1 block.

  • Price List

Installation

  1. Install the plugin from Plugins > Add New, or upload the hiperlink-cjenik folder to /wp-content/plugins/, and activate it.
  2. Under Settings > Price list > Trader and outlets, enter the OIB (legal person) or matični broj (natural person: the MBO of an obrt, the MIBPG of an OPG) and your outlets. A web shop is an outlet too (type INTERNETSKA_TRGOVINA).
  3. With WooCommerce, choose the food-type categories under Settings and check the base prices under Base prices. Without WooCommerce, add your goods and services under Goods and services, or import them from CSV.
  4. Add the Price list block to a page and link the page from the footer of your site.
  5. If WP-Cron is switched off on your site, add the system cron line from the Status tab.

FAQ

Do I need this if I have no web shop?

The duty applies to traders that have a website, not only to web shops, and to services as well as goods. A site without a shop lists its goods and services under Goods and services. A business without a website is not obliged to make one.

Why a stable address and a time stamp in the name?

The regulation says the changed file is published at the same URL, and that the file name includes a storage number and the time of publication. The stable address always answers with the current file and gives its full name in the Content-Disposition header and its own address in Content-Location; every file also stays at its own address under its full name. The price list page links both.

What is the storage number?

The “broj pohrane” of the regulation. The plugin counts the files of each price list from 1, so every file has its own number, also when two are published in the same minute.

Is there a header row? Which decimal separator?

A first row with the column names is on by default and can be switched off. Prices are written with a decimal comma and two decimals, without a thousands separator (12,99), because columns are separated by semicolons. The regulation prescribes neither; MINGO may give guidance, and the plugin will follow it.

Why are the retail price and the sale information two columns?

The regulation lists “the retail price and whether it was applied during a special form of sale” as one item. The plugin writes it as two neighbouring columns in that place, the price and DA or NE, so the price stays a number that programs can read and the order of the items is kept.

Does it work for a big shop?

Tested with 20,000 WooCommerce products and 7,300 variations (25,500 rows, a 1.4 MB file): a check that finds no change takes about 13 seconds in the background, the very first one about a minute, and visitors’ pages get no extra database query. If your host stops background jobs earlier, the first check goes on where it stopped at the next run; you can also run wp hiperlink-cjenik check once from WP-CLI.

My site is behind Cloudflare or another CDN. Anything to set?

The stable address is sent with Cache-Control: no-cache, so a CDN asks the site every time and collectors get the current file. Some CDNs rewrite that header for browsers (Cloudflare’s Browser Cache TTL does), and then a browser may show an old list for hours after a change. The “Check public access” button on the Status tab tells you when that happens; in Cloudflare, a Cache Rule for the /cjenik/ path with Browser TTL set to “Respect origin” fixes it.

How does the plugin meet the 11:00 deadline?

A price saved in the dashboard is published at once, at the end of that request. Scheduled sales and prices changed outside WordPress are found by the hourly check. If WP-Cron is off, the Status tab gives the line for the system cron; every 15 minutes is a good choice. The Status tab says when the last check ran.

Where does the base price come from?

From the base price field of the product, variation or item. The plugin records every price change from the day it is installed, and fills an empty field when that history decides the base price. You can also import a price history (code; date; price; sale; regular price) or, after a confirmation, use the current regular price.

Does it support XML?

Yes. The regulation allows .csv or .xml; choose one under Settings > File. The XML file has a root <cjenik vrsta="roba"> (or usluge), one <stavka> per row and in it one element per column, in the same order and with the same values as the CSV (<naziv>, <sifra>, … <bazna_cijena>). No schema is prescribed, so the plugin keeps the XML as close to the CSV as it can. The stable address keeps working when you switch: a collector that kept the .csv address gets the current file, whatever its format.

Are prices with VAT?

Yes. The retail price is the price with VAT, as WooCommerce shows it to customers.

What happens when I deactivate or delete the plugin?

Deactivating stops the updates and the stable addresses, and keeps the files. Deleting the plugin removes its settings, tables and product fields, and keeps the published files in uploads/cjenik/ at their addresses: the rules ask that a replaced price list stays available for 15 days, and the plugin is no longer there to delete them later. Delete the folder by hand when you no longer need it, or tick “Delete the published files when the plugin is deleted” under Settings before you delete the plugin.

Does it work on multisite?

Yes, each site has its own trader, outlets and files.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Hiperlink Cjenik” is open source software. The following people have contributed to this plugin.

Contributors

“Hiperlink Cjenik” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Hiperlink Cjenik” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.1

  • The plugin header links to the plugin page on hiperlink.digital (Plugin URI).

1.0.0

  • First version.