| 开发者 | hiperlinkdigital |
|---|---|
| 更新时间 | 2026年12月3日 20:10 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
12345678903_ZA_SVA_PRODAJNA_MJESTA_ROBA_7_20261120_0930.csv.https://example.hr/cjenik/12345678903_ZA_SVA_PRODAJNA_MJESTA_ROBA.csv.wp hiperlink-cjenik check or requests a secret address.[hiperlink_cjenik] shortcode shows the published files as tables, with links to the files and the archive.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).
hiperlink-cjenik folder to /wp-content/plugins/, and activate it.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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Yes. The retail price is the price with VAT, as WooCommerce shows it to customers.
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.
Yes, each site has its own trader, outlets and files.