Linux 软件免费装
Banner图

Hiperlink Cjenik

开发者 hiperlinkdigital
更新时间 2026年12月3日 20:10
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce price list croatia bazna cijena cjenik

下载

1.0.0 1.0.1

详情介绍:

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: 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 Which base price 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).

安装:

  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.

屏幕截图:

  • Trader and outlets.
  • The list of goods and services of a site without a shop.
  • Base prices: an item the recorded history cannot decide yet, the one-click confirmation and the import of a price history.
  • The base price under a WooCommerce price.
  • The price list page.

常见问题:

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.

更新日志:

1.0.1 1.0.0