
內容簡介
MJDD Sidrena Cijena 外掛可與 WooCommerce 一起使用,為每個產品及其變體儲存常規價格,並在當前價格旁顯示。此外掛還支援獨立於 WooCommerce 的使用,提供完整的價格列表功能,適合各類商品與服務。
【主要功能】
• 與 WooCommerce 完美整合或獨立使用
• 自動生成價格日期格式
• 支援多語言翻譯功能
• 自訂 CSS 樣式以符合佈景主題
• 提供公共 HTML 價格列表
外掛標籤
開發者團隊
② 後台搜尋「MJDD Sidrena i bazna cijena」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
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:
Bazna cijena (10.09.2026.) : 19,99 €
Bazna cijena na 10.09.2026. : 19,99 €
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
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();
WooCommerce CSV product import / export columns
HPOS compatibility
Development: MJDD / Jure Zadravec – https://mjdd.hr
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.
