With WooCommerce active, MJDD Sidrena i bazna cijena stores each product and variation regular price in its own field and shows it next to the current price. The statutory name from 17 November 2026 is bazna cijena. Sidrena cijena is the same amount. The default label is Bazna cijena, and the prefix
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 6.0 and PHP 7.4.
SourceWordPress plugins · Nov 24, 2026
01 / Source details
Aboutthistool.
With WooCommerce active, MJDD Sidrena i bazna cijena stores each product and variation regular price in its own field and shows it next to the current price. The statutory name from 17 November 2026 is bazna cijena. Sidrena cijena is the same amount. The default label is Bazna cijena, and the prefix stays editable. The first tab, Dodatne stavke , is the same row repeater for services and made-to-order items that are not Woo products. Those rows are appended to the end of the public XML/CSV. Without WooCommerce, that repeater is the whole pricelist ( Proizvodi ) plus a public HTML page at /sidrena-cjenik .
The prefix is text only; the date is added automatically in one of two formats:
Hovering the row shows a tooltip with an explanation (can be turned off). The prefix and tooltip can be translated with WPML, Polylang, TranslatePress, or Loco Translate.
The line under the product price has the CSS class sidrena-cijena so you can style it in the theme or Customizer (Appearance → Customize → Additional CSS). The default size is 14px (12px on mobile), without bold.
Features
Works with WooCommerce, or standalone on a plain WordPress site
Activation does not fill empty sidrena prices. Use the fill buttons or WP-CLI when you want that copy
Display follows WooCommerce tax settings (same VAT treatment as the regular price)
Filter sidrena_cijena_price_to_display when MPC is calculated outside WooCommerce Tax
Field below the sale price on simple products and on every variation
WooCommerce → Sidrena cijena tabs: Dodatne stavke, Settings, Import/Export, Public feed (top-level menu when Woo is not active; the first tab is then Proizvodi)
With Woo: Dodatne stavke repeater for services and made-to-order items. Each row has a type (proizvod or usluga), its own sidrena date, and, with several outlets, a webshop or poslovnica. Shortcode [sidrena-cijena id="d1"]
Without Woo: product repeater (name, SKU, URL, regular, sale, sidrena, Dostupno/Nedostupno) feeding the same export; each row has [sidrena-cijena id="x"] for pages
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati
Public HTML pricelist at /sidrena-cjenik (always without Woo; on a shop only after HTML stranica /sidrena-cjenik is turned on)
Prefix without a date; storefront format: Prefix (date) or Prefix date (the word “na” belongs in the prefix). An empty prefix with Prefix date prints only the date and the amount
Default reference date plus an optional per-product date (FMCG 02.05.2025. vs other goods 10.09.2026.)
Tooltip on hover of the whole row (switch, on by default)
Prefix and tooltip translations in WPML, Polylang, TranslatePress, or Loco Translate
Export of the client pricelist (CSV or XML, same columns as the public feed) and of products missing a sidrena price
Bulk import CSV/XML by SKU or catalog/product ID, with price column mapping (creates catalog rows when Woo is off)
Public price lists at /sidrena-cijena-robe.xml and /sidrena-cijena-usluge.xml (or .csv ). /sidrena-cijena.xml stays an alias of the goods file, or of the services file when there are no goods
Goods columns: naziv , sifra , marka , neto_kolicina , jedinica_mjere , maloprodajna_cijena , poseban_oblik ( DA / NE ), cijena_jedinice_mjere , barkod , ean_barkod , bazna_cijena . Services: naziv , maloprodajna_cijena , poseban_oblik , bazna_cijena . A virtual product with no saved Vrsta is a service. Isključi iz javnog cjenika on the product (and in bulk edit) leaves that row out of the public files
A new file is written only when that statutory body changes. The stable URL is overwritten and the previous file stays in the archive for 15 days. Catch-up runs at 10:00, before the 11:00 deadline
Optional multiple outlets: /sidrena-cijena-robe-001.xml and /sidrena-cijena-usluge-001.xml . One cjenik for every place uses ZA_SVA_PRODAJNA_MJESTA and no per-outlet files. /sidrena-cjenik stays one mixed HTML table
Shortcode [sidrena-cjenik] prints the searchable pricelist table (name, SKU, barcode, prices, availability) on any page. oznaka="001" limits it to one outlet. [sidrena-arhiva oznaka="001"] does the same for the archive list
Optional unit of measure (CJM). When the setting is on, each Woo product and each manual row (Proizvodi / Dodatne stavke) can append a unit to the prefix, e.g. “za kg/l”
Public feed publishes one retail price. While a sale price is active poseban_oblik is DA , otherwise NE . The action name stays on the HTML table only
Automatic display below the price (can be turned off; the shortcode remains)
Shortcode [sidrena-cijena] for product loops and custom templates. prikaz="redovna" , prikaz="akcijska" , or prikaz="sidrena" prints only that amount
Universal hook: do_action( 'sidrena_cijena' ); or sidrena_cijena();
Sidrena cijena is free software, offered as-is and without warranty, and without responsibility for the prices you publish, to the extent the law allows. It is a tool for showing and publishing prices, not legal advice. Please check that the prices you publish are the ones you intend, and that they follow the rules that apply to your shop.
02 / Source details
Gettingstarted.
01Copy the sidrena-cijena folder to wp-content/plugins/ .
02Activate the plugin.
With WooCommerce
03WooCommerce → Sidrena cijena → Dodatne stavke (first tab): optional rows for services and made-to-order items that are not Woo products. They are added at the end of the public XML/CSV. Copy [sidrena-cijena id="d1"] from a row onto a page.
04Settings : prefix, date format, default date, tooltip.
05Edit the sidrena price, date, Vrsta, and Isključi iz javnog cjenika on a Woo product if needed (below the sale price). A virtual product with no saved Vrsta is treated as a service.
06Import/Export : export the price list or bulk-import CSV/XML by SKU.
07Public feed : choose XML or CSV. Goods and services are separate files, /sidrena-cijena-robe.xml and /sidrena-cijena-usluge.xml . A file is replaced only when its content changes. The archive keeps the replaced file for 15 days. A catch-up runs at 10:00.
08Several outlets : on Poslovnice , enter the OIB or personal identification number. Each outlet gets /sidrena-cijena-robe-001.xml and /sidrena-cijena-usluge-001.xml . Tick the same-cjenik box to publish one file for every place ( ZA_SVA_PRODAJNA_MJESTA ).
09Table on a page : paste [sidrena-cjenik] (or [sidrena-cjenik oznaka="001"] for one outlet). The shortcode is also shown on the Public feed tab, with a copy button.
Without WooCommerce
10Sidrena cijena → Proizvodi : add rows (name, SKU, URL, regular price, sale price, sidrena price, Dostupno/Nedostupno) or import CSV/XML. Copy [sidrena-cijena id="x"] from a row onto any page so prices stay in admin. Paste [sidrena-cjenik] where you want the full searchable table.
11Settings : prefix, date format, default date, tooltip. Turn on Više poslovnica? if you have more than one sales outlet.
12Public HTML pricelist: /sidrena-cjenik . XML/CSV feed and 30-day archive work the same as with Woo.
03 / Source details
Frequently asked questions.
WP-CLI
The admin Fill empty fields button processes 40 products per AJAX request. For a full catalog:
wp sidrena-cijena status wp sidrena-cijena fill --dry-run wp sidrena-cijena fill wp sidrena-cijena fill --today
Default fill is a SQL copy of _regular_price into empty _sidrena_cijena (does not overwrite values already stored). Variable/grouped parents are skipped; variations are filled. --today also writes today’s date as the per-product reference date when that field is empty (products first put on sale after 10.09.2026.).
wp sidrena-cijena fill --safe uses WooCommerce product objects (same as the admin button, slower). Fallback: `wp eval-file wp-content/plugins/sidrena-cijena/bin/fill.php`
Tax (VAT)
The sidrena price is stored in the same form as the WooCommerce regular price. On the storefront the plugin uses wc_get_price_to_display() , so the display follows WooCommerce → Settings → Tax (entered including or excluding tax, shop display with or without VAT). You do not need to re-enter prices after an update.
If the shop shows MPC with a custom VAT calculation (not WooCommerce Tax), hook sidrena_cijena_price_to_display so the sidrena amount matches the regular price. See Hook and shortcode .
Settings
Sidrena cijena settings (WooCommerce submenu, or a top-level menu without Woo).
The admin and storefront text is Croatian when the site language is Croatian (or when WordPress has no other match). English, German, and Slovenian are included for en_US, en_GB, de_DE, and sl_SI. A saved prefix and tooltip stay as you typed them.
Automatic sidrena price display – Woo only; below the current price; when off, only [sidrena-cijena] / [sidrena-cijena id="x"] remain
Prefix – words only, e.g. Bazna cijena (do not type the date here). Sidrena cijena is accepted and is not rewritten. If the saved prefix is only Cijena , an admin notice offers the statutory label.
Date format – Prefix (date) or Prefix date (e.g. put Sidrena cijena na in the prefix). Leave the prefix empty with Prefix date to print only the date and the amount, with no colon
Default reference date – e.g. 10.09.2026. (used for every product without its own date)
Per-product reference date – Woo only; leave empty for the default; for FMCG enter 02.05.2025.
Tooltip – switch and text (translate in WPML / Polylang / Loco)
Marka – taxonomy dropdown (Woo) plus a manual brand. The feed uses the product’s term, then the manual brand. Each row on Proizvodi / Dodatne stavke has its own Marka field.
Cijena za jedinicu mjere (CJM) – off by default. When on, Woo products and every manual row get a CJM switch plus a unit phrase (e.g. za kg/l ). The phrase is added only to that row’s sidrena label. The public feed uses separate fields: jedinica_mjere and cijena_jedinice_mjere , entered on the product or the manual row.
Poslovnice – each saved outlet gets its own legal filename (store type, address, object code, storage sequence) and its own feed. An outlet with no products does not publish a file. Without WooCommerce there is no extra webshop file. With one outlet, manual rows that have no outlet go into that file.
Dodatne stavke (Woo, first tab) – same repeater for services and made-to-order items. Required: name, regular price, sidrena price. Each row has a type (proizvod or usluga), its own sidrena date (empty keeps the shop default), and a Dostupno/Nedostupno dropdown. With several outlets, choose Webshop or a poslovnica. A service is written only into that feed. Shortcode [sidrena-cijena id="d1"] .
Products tab (without Woo) – the same repeater for the whole public pricelist, including the availability dropdown. Saved as one JSON field to avoid max_input_vars limits.
HTML stranica /sidrena-cjenik – on the Public feed tab, Woo only, off by default. When on, /sidrena-cjenik publishes the full HTML pricelist. The shortcode [sidrena-cjenik] works either way.
At the bottom of the Woo settings tab: Fill empty fields from the regular price – empty fields only; existing sidrena values are left alone. The date stays the shop default (e.g. 10.09.2026.). Fill empty sidrena prices with today’s date – same fill, plus today’s date on products that have no date yet (new products after the reference day). Activation does not fill prices. The buttons walk the catalog in short steps, including each variation, show a progress bar, and resume if a request is cut off. An admin notice points at these two buttons until you run one or dismiss it. For large catalogs use WP-CLI: wp sidrena-cijena fill or wp sidrena-cijena fill --today (see WP-CLI ).
Delete all data and deactivate – removes sidrena prices, standalone catalog, settings, public XML and archive, then deactivates the plugin. Cannot be undone.
Import / export
Import/Export tab:
Bulk import – CSV or XML. Rows match first by SKU, then by ID. With Woo: a matching Woo product is updated (including stock on the webshop). If neither SKU nor ID hits a product, or the row is vrsta usluga, it is saved as a manual row (Dodatne stavke), not as a new Woo product. The template has one product example and one service example, including type, date, and outlet. Regular, sale, and sidrena prices are mapped separately; the default is Do not import . Without Woo: rows with a matching SKU or ID in that catalog are updated, other rows are appended (name, regular, and sidrena are required for new rows). Empty cells are skipped. The progress bar uses AJAX batches.
Export price list – the client cjenik, same CSV/XML columns as the public feed: id , vrsta , naziv , sku , marka , url , jedinica_mjere , cijena_jedinice_mjere , maloprodajna_cijena , naziv_posebnog_oblika , sidrena_cijena , sidrena_datum , barkod , dostupnost . Published products only. Variations are separate rows. Dodatne stavke are at the end. A file that contains only services leaves out SKU, brand, unit, barcode, and availability.
Export products without a sidrena price – internal columns naziv , sku , cijena_redovna , cijena_akcijska , sidrena_cijena , including unpublished products, only where sidrena is empty
Sidrena price, date, and CJM remain columns in WooCommerce Products → Import/Export (for the catalog, not for the price list itself)
After importing sidrena prices, regenerate the public feed if you use it.
Public feed
Public feed tab. Goods: https://shop.example/sidrena-cijena-robe.xml . Services, when at least one priced service exists: https://shop.example/sidrena-cijena-usluge.xml . Format is a setting (default XML). /sidrena-cijena.xml is an alias of the goods file, or of the services file when there are no goods.
Goods columns, in this order: naziv , sifra , marka , neto_kolicina , jedinica_mjere , maloprodajna_cijena , poseban_oblik , cijena_jedinice_mjere , barkod , ean_barkod , bazna_cijena . Service columns: naziv , maloprodajna_cijena , poseban_oblik , bazna_cijena . neto_kolicina is filled only when that good has a unit or a unit price. poseban_oblik is DA while a sale price is active, otherwise NE . An EAN-8 or EAN-13 goes in ean_barkod ; any other code stays in barkod . bazna_cijena is the stored regular reference price. CSV is UTF-8, separated by ; , with a decimal comma. The HTML table may still show a link and availability. Those columns are not in the XML or CSV.
A price, sale, catalog, or manual-row change queues one rebuild about a minute later. The 10:00 run repeats the same check so a missed overnight change is published before 11:00. The same statutory body does not touch the live file or the archive. A changed body overwrites the stable URL, copies the previous bytes into the archive under the legal name, and advances that kind’s storage number. The replaced file stays for 15 days. A visit to a missing file returns 503 and queues one rebuild, with a 15-minute cooldown. Files live in wp-content/uploads/sidrena-cijena/ .
The legal download name is {OIB or personal number}_{sales-place class}_{address}_{code}_{ROBE or USLUGE}_{storage}_{YYYYMMDD}_{HHMM}.xml . One cjenik for every place keeps the class and uses ZA_SVA_PRODAJNA_MJESTA instead of the address and code: {OIB}_{class}_ZA_SVA_PRODAJNA_MJESTA_{ROBE or USLUGE}_{storage}_{YYYYMMDD}_{HHMM}.xml . Enter the number, class, address, and code on Poslovnice . The e-računi extension follows that same checkbox and does not publish a file per store while it is on.
Several outlets. Each outlet is published at /sidrena-cijena-robe-001.xml and /sidrena-cijena-usluge-001.xml (or .csv ). With the same-cjenik option there are no per-outlet files. /sidrena-cjenik stays one mixed HTML table. Each outlet HTML page is https://shop.example/sidrena-cjenik/001/ .
Table shortcode. [sidrena-cjenik] prints only the searchable table (plugin design) on any page or in an Oxygen shortcode element. [sidrena-cjenik oznaka="001"] limits the rows to one outlet. Columns follow the public feed: name, SKU, brand, barcode, unit, unit price, retail price, sale-form name, sidrena price, availability. The name links to the product URL when one is set. The Public feed tab lists these shortcodes with a copy button.
Archive shortcode. [sidrena-arhiva] prints only the archived filenames and dates, in the same light-blue list. [sidrena-arhiva oznaka="001"] limits the list to one object code. The public archive page groups files by outlet when several are on. The Public feed tab shows these shortcodes with a copy button.
CJM
In settings, enable Cijena za jedinicu mjere (CJM) . On each Woo product and variation, and on each row of Proizvodi or Dodatne stavke , a CJM switch appears. When that row’s switch is on, you enter a unit phrase (e.g. za kg/l ).
Bazna cijena + `za kg/l` + parentheses format = `Bazna cijena za kg/l (10.09.2026.)` Bazna cijena + `za kg/l` + “na” format = `Bazna cijena za kg/l na 10.09.2026.`
Compatibility
Works alongside the Croatian 30-day Omnibus plugins Wo
Without WooCommerce, the same table is also a page at https://shop.example/sidrena-cjenik/ . On a WooCommerce shop that page is off until you turn on HTML stranica /sidrena-cjenik on the Public feed tab.