eCijene: bazna (sidrena) cijena i cjenik za WooCommerce
Bazna (sidrena) cijena, cjenik in CSV/XML and the 30-day lowest price for WooCommerce, shops with a POS and services, per the ordinances NN 132/2026.
Install in
eCijene shows the base price (“bazna cijena”, popularly “sidrena cijena”) next to every price in your WooCommerce shop and publishes your price list (“cjenik”) in CSV and XML, as required in Croatia from 17 November 2026 by the ordinances under the Consumer Protection Act (NN 132/2026). A price change is published a few minutes after it is saved, well before the deadline of 11:00 on the day of the change.
What became popularly known as “sidrene cijene” (anchor prices) are called base prices (“bazne cijene”) in the ordinances. History: the temporary Government decisions NN 101/2026 and NN 110/2026 (“dodatna cijena”, daily price list by 8:00) were postponed to 17 November 2026 and are replaced on that date by the ordinances. eCijene follows the ordinances from 17 November 2026 automatically; the legal basis can also be set by hand. It is made for Croatian merchants and ships with a complete Croatian translation.
Base price (bazna cijena)
- Shown next to the price with its date: the price on 10.9.2026, on 2.5.2025 for goods in the categories with that date (food, beverages, cosmetics, cleaning products, toiletries, household products), or the price when first listed for products added later.
- During a sale three prices are shown: the sale price, the lowest price in the last 30 days and the base price.
- The setup wizard copies the current prices as base prices only after you confirm that they are the prices on the reference date. Different prices are corrected on the product, in Quick Edit, in the Items table or by CSV import.
- Exempt categories for products whose price is set by special regulations or other legal acts: no base price and not in the price list.
Lowest price in the last 30 days
- Every price change is recorded. During a sale the lowest price from the 30 days before the sale started is shown, including gradual reductions and reductions not marked as a sale (Consumer Protection Act, Art. 19, EU Omnibus Directive).
- Warning in the Items table when a sale price is not lower than the lowest price in the last 30 days.
- Unit price from the net quantity and unit (kg, g, l, ml, m, m2, kom).
Price list (cjenik)
- CSV and XML with the file name of the ordinance (OIB, type of sales point, address, code, ROBA or USLUGE, file number, time as YYYYMMDD_HHMM, or ZA_SVA_PRODAJNA_MJESTA for one list for all sales points; in the static file “_” inside a part is written as “-“, so the name always splits into exactly these parts) and the prescribed columns in the order of the ordinance: name, SKU, brand, net quantity, unit, retail price, special form of sale, unit price, barcode, EAN barcode, base price. Optional extra columns follow them (base price date and lowest price in 30 days by default; special form of sale name, URL and ID on request).
- Published a few minutes after a price change (product save, Quick Edit, import, base price change) and checked every day at the time you choose (default 05:30, site time zone Europe/Zagreb); a new file with a new number only when the content changed.
- Public archive at /ecijene/ with the same stable address for the current list (/ecijene/webshop.csv): superseded files stay online for at least 15 days after they are replaced (default 45), with a searchable table view and a machine-readable file list (index.json).
- Optional live endpoints: current data of one item as JSON at /ecijene/api/<šifra>.json and the current price list generated on request.
- “CSV only” mode for servers or firewalls that block XML (the ordinance allows CSV alone).
- Per product: “Exclude from the price list” or “Always include”, on the product and in Quick Edit; hidden products are left out automatically.
- Alert in the administration and by e-mail when today’s check has not run by the alert time (default 07:30).
- Log of every publication, check and error; cache purge for common cache plugins after a new price list.
Shops, branches and other sales points (POS or ERP export)
- Any number of sales points next to the webshop, each with its own type, address, code, file numbers, archive, stable address, import profiles and corrections. Two sales points with the same type, address and code are refused (the file name would be the same).
- Upload the price list export of your POS or business program as it is: CSV in UTF-8 or Windows-1250, with or without a header row, or XLSX. You assign its columns once on a screen with sample values; the assignment is remembered per file shape. A built-in profile recognizes POS price lists made under the Government decisions (11 columns, no header).
- eCijene converts the file to the columns of the ordinance, applies your corrections per šifra (2.5.2025 group, unit KG/M, brand), names the file, publishes it at a stable address (e.g. …/uploads/ecijene-prodavaonica/prodavaonica.csv) and keeps replaced files in an archive page with index.json in the same folder.
- 2.5.2025 group per sales point: all items 10.9.2026, all items 2.5.2025 (with your recorded confirmation that the base prices in the export are the prices on 2.5.2025), by the categories of your export (assigned once and saved with the profile; you choose the group of unassigned categories before the first publication) or by name rules of a preset (“Papirnica / uredski i školski pribor”). Proposals are listed “for confirmation”; corrections per šifra always win.
- Lowest price in the last 30 days for sales: from a column of your export, or computed from your uploads: when there was an upload on each of the 30 days before the sale started, or, with your recorded statement that you upload the export at every price change, from all uploads since the first one. Otherwise the field stays empty and the item is listed for confirmation; no value is guessed.
- Undo: the previous price list is published again as a new file; the archive keeps both, as the ordinance requires.
- Works without WooCommerce (a shop without a webshop) and without server access: everything happens in the WordPress administration, no FTP or cron job needed. A user role that may only upload the price list.
Services (works without WooCommerce)
- Services price list for restaurants, cafés, accommodation, salons, workshops and other service providers: entered in a table, imported from CSV or recognized from an existing page on your site (a menu or a price table).
- Published as CSV and XML on every change, with an archive and the base price column.
- Shortcode for a table or a menu grouped by category, with the base price next to every price.
- Optional (off by default): WooCommerce products and variations marked “Virtual” and not “Downloadable” leave the product price list and are published in the services price list next to the services entered there, with the price, special form of sale and base price from eCijene.
Setup and everyday work
- Setup wizard that asks where you sell (webshop, physical shop or branches, services), enables only the obligations you need, publishes the first price list and links to the setup of the other price lists.
- Overview with open tasks, an Items table for direct entry with validation (barcode check digit, dates, amounts), CSV export and import with column mapping, preview, confirmation and undo.
- Display settings with live preview (labels, position, size, colors with a contrast check) and shortcodes [ecijene_cijena], [ecijene_cjenik], [ecijene_obavijest], [ecijene_usluge].
- Cloudflare and firewall check with the exact rules to add when automated programs cannot download the price list.
- Variable products, WPML multilingual shops (translations share history and base prices, labels per language).
- WooCommerce High-Performance Order Storage (HPOS) and the Cart and Checkout blocks: compatible, tested with orders on WooCommerce 11.1.
- Warning when another lowest price or anchor price plugin is active, to avoid duplicate prices.
- WP-CLI:
wp ecijene status | diagnose | generate | data export|import | reference ....
Why it is reliable
- Every base price has a recorded source (setup copy, manual entry, import, first listing) with the user and the time. Confirmations in the setup wizard are recorded the same way.
- eCijene never invents or estimates historical prices and never reads backups or old orders. What it cannot prove, it does not show (no struck-through price without 30 days of history or a confirmed start).
- Every import is previewed before it is saved and can be undone.
- The price, history and price list rules are plain PHP covered by unit tests; integration scenarios run on PHP 7.4 and 8.x.
- No external services: nothing is sent to third parties (see External services).
eCijene is not legal advice. The merchant is responsible for the accuracy of the data and the interpretation of the regulations.
External services
eCijene does not send data to third parties. It makes these HTTP requests:
- To your own site: the setup wizard and the diagnostics check that the price list addresses answer and are not blocked (e.g. by Cloudflare), and the scheduler can call its own generation URL. Nothing leaves your site except these requests to its own public address.
- To a page address you enter yourself in Services > Import and export (“Import from an existing website”), to read the prices on that page. Only public addresses are allowed (local and private addresses are refused).
Written by Joobi from the project's own listing. See the source page
2.9.2
- Fix: variable products whose variations have different prices. A theme that moves the selected variation’s price (with the eCijene lines) next to the main price no longer gets the same lines again below the variation selector. When a theme shows only the amount at the top and hides WooCommerce’s variation price, the lines are now shown below the selector (before they were hidden with it).
- The table view (/ecijene/pregled/) shows the services price list as its own section, read from the latest published services file with the same columns: manual services and, with the setting, virtual products. The services archive links to it.
- The archive of the price list, the table view, the services archive and the archives of the sales points share one look: the same maximum width (1200 px), centred, written into each page.
2.9.1
- Fix: a security plugin that stopped a request to the archive page before eCijene handled it could leave its answer (e.g. “403 Forbidden”) in the page cache, which then served it to every visitor. Page caches are now told not to cache /ecijene/ already while the plugin loads.
- The archive page carries a marker (header X-Ecijene and a meta tag). Every 15 minutes and in “Check availability” eCijene requests it like an anonymous visitor; a page without the marker is a wrong cached copy: that URL and the home page are purged (W3 Total Cache, WP Rocket, LiteSpeed, WP Super Cache, other plugins through the action ecijene_cache_purge_url, all page caches as a fallback) and checked again, at most once an hour. The result is in the log and in the technical checks of the overview, with a warning when the purge did not help.
- Static copy of the archive page and index.json in the price list folder (…/uploads/ecijene/cjenik/index.html and index.json), written with every publication; listed in Public URLs and in “Check availability”. The archive page links the static index.json as the main JSON address.
- “Check availability” explains when the web server answers /ecijene/index.json itself (404) and the address with the parameter works.
2.9.0
- New setting “Virtual products (not downloadable) go to the services price list” (eCijene > Settings, and in the setup wizard): such simple products and variations leave the product price list and are published in the services price list next to the manual services, with the retail price, special form of sale and base price from eCijene. Off by default; it takes effect only when the services price list is set up. Switching it on or off republishes both price lists.
- Services price list: an item without a base price has empty base price columns (not 0,00).
2.8.2
- Fix: a variable product whose variations all have the same price and values showed the base price (and lowest price) lines twice after a variation was selected: next to the product price and again below the selection. The lines now stay next to the product price only; variations that differ are shown as before.
- Price list per variation: “Price list (eCijene)” on a variation (As the product, Always in the price list, Exclude from the price list); without its own setting a variation follows the product. Excluding a variable product (also a virtual one) leaves all its variations out of the price list.
2.8.1
- After every sales point publication the stable copy (.csv) is compared with the dated file and written again if it differs.
- Once after the update the stable copies of all sales points and of the webshop list are made equal to the last publication, without a new publication.
- “Check availability” compares what each stable address answers with the last publication, byte for byte, and names a cache in front of the server (e.g. Cloudflare) when it serves an older copy.
- A further sales point of 2.7 is taken over as sales point 1 also when the sales points register already existed without it.
2.8.0
- Several sales points with a price list from a POS or ERP export, each with its own type, address, code, numbers, archive, stable address, profiles and corrections; choose the sales point before the upload. The existing further sales point becomes sales point 1 with the same URLs, numbers, import profile and corrections.
- Sales points work without WooCommerce (own menu items under eCijene); archive page and index.json in the folder of each sales point; links in the footer and [ecijene_obavijest] for all of them.
- 2.5.2025 group per sales point: all 10.9.2026, all 2.5.2025 (only with a recorded confirmation), by category (assigned once, saved with the profile; the group of unassigned categories must be chosen before the first publication) or by name rules of a preset.
- Lowest price in 30 days for sales points: from a mapped column, or from the upload history (every one of the 30 days, or all uploads since the first with the recorded statement “Izvoz učitavam pri svakoj promjeni cijena”); otherwise listed for confirmation.
- Undo of the last sales point publication (published again as a new file).
- A base price from the first offer is kept for later uploads that have no base price column.
- File names: in the static file “” inside a part is written as “-” (ZA_SVA_PRODAJNA_MJESTA unchanged); the default type of sales point is “Internet trgovina”. Existing settings are not changed; a one-time notice lists types written with ““.
- Setup wizard: new step “Where do you sell?”. Neutral examples in help texts.
2.7.2
- Fix: “Upload price list” was the first item under eCijene with a broken link (and the main eCijene item took that link); it is now the last item, opens admin.php?page=ecijene-cjenik-prodajnog-mjesta for administrators and shop managers, and the main item opens Products again. The upload-only user keeps a top-level item of their own.
2.7.1
- Page caches (W3 Total Cache, WP Rocket, WP Super Cache, LiteSpeed, WP Fastest Cache, SiteGround, Breeze, WP-Optimize, Cache Enabler) are emptied after every price list publication and once after a plugin update, so the links to the current dated file are not served stale.
- Overview under the ordinances: “base price”, price list published on change, brand as a recommendation (“ako je primjenjivo”), and a new task and filter “sale without the lowest price in the last 30 days (enter it by hand)”.
- The overview task “today’s price list” takes the daily check into account under the ordinances (a day without a price change is not an error).
2.7.0
- Sales points: upload the price list export of any POS or business program as it is. eCijene detects the encoding (UTF-8 with or without BOM, Windows-1250), the separator (; , tab), a header row, decimal comma or point and empty fields written as NUL bytes; rows with fewer columns are skipped and listed. XLSX is read when the PHP zip extension is available.
- Column mapping screen with three sample values per column; the mapping is saved as a named profile and applied to the next file of the same shape. Built-in profile “Blagajna, cjenik po odlukama Vlade (11 stupaca, bez zaglavlja)”.
- Value rules: brand “0” or “-” is empty, special form of sale da/ne, 1/0, D/N, dates as YYYY-MM-DD, D.M.YYYY. or Excel numbers, EAN barcode from a valid EAN-8/13 barcode, units unified (KOM, KG, M, L, PAK).
- Corrections per šifra (2.5.2025 group yes/no with the price on 2.5.2025, KG/M yes/no or the correct unit, brand), imported from CSV or XLSX (e.g. the review workbook); they win over the file on every upload. Without an answer, name-based 2.5.2025 proposals and KG rows to check are published with a default rule and listed “For confirmation” (downloadable, re-importable). New items without a base price get their first price and date.
- Preview before publication (rows read, skipped, errors, changed prices, new items, items for confirmation, file name) and a report after it; an unchanged list is not republished.
- Role “eCijene: učitavanje cjenika” (capability ecijene_upload_pricelist): the user sees only the upload page; shop managers have the capability too.
2.6.3
- Admin: other plugins’ notices are no longer shown inside the eCijene screens with eCijene’s buttons and rounded boxes; WordPress places them above the eCijene header. eCijene’s own notices carry an “eCijene” label.
- Import preview: a row with only the lowest price in the last 30 days is shown as “lowest price in the last 30 days”, not as a base price change.
- The static files in the uploads folder are the primary public addresses of the current price list (archive page, index.json, admin lists); /ecijene/.csv stays as a second address. “Check availability” also tests the current dated file and says which address to use when the /ecijene/ address does not answer a program.
- The price list links added to a menu and the [ecijene_obavijest] shortcode also link the current dated CSV file (name with the parts of the ordinance), for checkers that cannot read the archive page.
- Texts under the ordinances: “base price” and “price list published on change” in the admin header and the import messages.
- Services: the type of sales point of the services price list is its own setting and is never taken from the product price list; without it or without the OIB the services list is not published under the ordinances. File numbers of the services price list are no longer zero-padded (like the product price lists).
2.6.2
- New tab “Sales points”: a further sales point (e.g. the physical shop) whose price list is a ready-made file. Upload a CSV (optionally XML) in the format of the Pravilnik o načinu objave cjenika proizvoda (NN 132/2026): UTF-8, “;”, the prescribed columns in their order, optional extra columns after them; every row is checked (amounts, special form of sale, EAN, dates).
- The file is published with the next file number of that sales point and the file name of Article 6 (OIB, type of sales point, address, code, ROBA, number, time), at a stable address (/ecijene/.csv and uploads/ecijene-/.csv) that is overwritten on each upload; replaced files stay in the same folder for at least 15 days (default 45) and are listed on the public archive page and in index.json (“prodajna_mjesta”).
- No item table, history or lowest-price calculation for this sales point: the content of the file is the merchant’s.
- Setting “Published formats”: CSV and XML, or CSV only (for servers that block XML for programs). In CSV only mode no XML is generated or linked for the product list, the services list and further sales points, stable XML copies are removed, and the archives list only files that exist.
- Price list tab: “Check availability” requests every public price list address from the own server with the user agents of programs and shows the HTTP status.
- The bundled Croatian translation is loaded also when a language pack from translate.wordpress.org exists, so texts new in a release (including the customer notice) are not shown in English until the pack catches up.
2.6.1
- Final ordinances published in Narodne novine 132/2026 (Pravilnik o isticanju bazne cijene proizvoda, Pravilnik o načinu objave cjenika proizvoda), in force from 17.11.2026.
- Price list schema 3: prescribed columns first in the order of Article 3 (EAN barcode added after barcode; services start with the service name), optional extra columns after them with a setting (base price date and lowest price in 30 days on by default; special form of sale name, URL and ID off).
- File name under Article 6: OIB or registration number, type of sales point (default Internet_trgovina), address, code, ROBA or USLUGE, file number and time YYYYMMDD_HHMM; option ZA_SVA_PRODAJNA_MJESTA. New settings with an OIB check digit test; a warning while the OIB is missing.
- A changed price list is published a few minutes after a price, product or base price change (deadline 11:00 on the day of the change), in addition to the daily check. “Generate again” checks the list and publishes it when something changed.
- Archived price lists: at least 15 days after replacement (default storage stays 45 days). Stable addresses (/ecijene/webshop.csv) and existing archives are unchanged.
- Texts: deadlines, exemptions (“posebnim propisima ili drugim pravnim aktima”, vending machines), the Government decisions described as never applied.
- Setup wizard: the disclaimer is shown once in the first step; the price list address field validates in current browsers.
- Import (since 2.6.0, not listed then): column aliases, “spada_u_skupinu”, “id” next to “sifra”.
2.6.0
- Legal basis setting: Government decisions NN 101/2026 and NN 110/2026 until 16.11.2026, ordinances under the Consumer Protection Act (Art. 7(11) and (12)) from 17.11.2026; automatic by default.
- Under the ordinances: price list schema 2 (columns in the order of the ordinance, net quantity added, availability removed, “bazna_cijena”), published only when the content changed and kept online for 30 days after it was superseded; the 2.5.2025 date follows the product category for every merchant; exempt categories (no base price, not in the price list); updated public texts and deadlines.
- Services price list: column “bazna_cijena” under the ordinances; the daily check republishes the list once when the legal basis changes.
2.5.5
- Regression check of 2.5.4: plain sanitize_text_field() for table input, only HTML built by eCijene is passed through wp_kses() (third-party price markup is left intact).
2.5.4
- Shortcodes and output filters return HTML escaped with wp_kses(); JSON from the admin tables is sanitised before decoding and field by field after it; no inline event handlers.
2.5.3
- Hardening for the WordPress.org review: direct-access guard in every PHP file, input sanitised when read, assembled HTML passed through wp_kses before output, database tables created with dbDelta(), nonces on the refresh and recheck links, all JavaScript in files.
2.5.2
- WordPress.org review: own nonce for product fields and Quick Edit, public page styles and scripts as enqueued files, uploads through wp_handle_upload, WP-CLI exports to standard output, the old eCijene Usluge add-on is no longer deactivated automatically, notices only on the Dashboard, Plugins and eCijene screens.
2.5.1
- New administration design: rounded cards, fields and buttons, setup wizard with step cards.
2.5.0
- English source strings with a bundled Croatian translation (preparation for WordPress.org).
- Stricter input sanitization on the product edit screen and in settings.
- Services import: a new service with a date but no additional price gets its price with that date; only an empty date means first listing with today’s date.
- Block themes: the additional price line is styled inside the WooCommerce product price block.
2.4.0
- Services: import a menu or price list from an existing web page (address or HTML), with preview and confirmation.
- Menu grouped by category: [ecijene_usluge grupiraj=”da”].
- Suggestions for object types and units for restaurants and accommodation.
2.3.0 to 2.3.4
- Import history with undo, label position above or below the price, cache plugin purge, first price list published by the wizard, optional JSON API per SKU.
- Items table: separate editable date column, date picker and validation of every field while typing; date picker on the product page.
2.2.0
- New administration: Overview with tasks, Items table for direct entry, Display tab with live preview, Quick Edit, excluding an item from the price list, shortcodes [ecijene_cijena] and [ecijene_cjenik], warning when another lowest price or anchor price plugin is active.
2.1.0
- Multilingual shops (WPML with WooCommerce Multilingual): translations share price history and additional prices, each item appears once in the price list, labels per language.
2.0.0
- Services price list (formerly the separate eCijene Usluge add-on) is part of eCijene and works without WooCommerce; own eCijene menu; price list links in a chosen menu.
1.0.0 to 1.5.3
- CSV export and import of all price list data with column mapping and preview, brands from product tags, customer notice shortcode, custom price list address, Cloudflare check, runs on PHP 7.4 to 8.5.
0.3.0
- Daily price list with archive, schedule and warnings.
Follow this listing's changes (Atom feed)