Omnibus, Price History and Anchor Price
Version 1.1.6
October 13, 2026
Changed
- No functional changes. The source now passes PHPStan (level 4) and ECS, and
phpstan/phpstanis a dev dependency socomposer installprovidesvendor/bin/phpstan.
Version 1.1.5
October 13, 2026
Fixed
- Price history is recorded under the variant's primary product. When a product draft re-saved its live variants (for example after a variant was added in the draft), the rows were recorded under the draft's id and deleted along with the draft when it was applied. Rows lost that way before this release cannot be recovered by the plugin.
Version 1.1.4
October 11, 2026
Fixed
- Saving a product whose product type has versioning enabled no longer fails with
TypeError: addProductHistoryPrice(): Argument #2 ($variantId) must be of type int, null givenwhen a variant changed since the last revision. Variant revisions are no longer passed to the price history. - A variant without a store price row no longer records a 0.00 price as its first history entry.
Version 1.1.3
September 20, 2026
Changed
- Plugin handle is
omnibus(wascraft-product-price-history). Console commands are nowcraft omnibus/anchor/...andcraft omnibus/price-list/..., the translation category isomnibus. Theproduct_price_historytable and thecraft.productPriceHistoryvariable are unchanged. Sites on the old handle uninstall it and installomnibus, then runanchor/backfill --as-of=2026-09-10.
Version 1.1.2
September 20, 2026
Changed
- Plugin renamed to "Omnibus, Price History and Anchor Price".
- Anchor label setting is optional; when empty the translated default is used ("Anchor price", Croatian "Sidrena cijena").
- Control-panel headings and the generated price-list index no longer carry Croatian source strings; Croatian comes from translations.
Version 1.1.1
September 20, 2026
Changed
- Plugin renamed to "Omnibus and Anchor Price"; every control-panel label and the public price-list page are now English source strings with Croatian translations.
- Price-list index date printed as d.m.Y.
Version 1.1.0
September 20, 2026
Added
- Anchor price ("sidrena / dodatna cijena", NN 101/2026): the price applicable on the reference day (default 10 September 2026), or the first recorded price for products listed later.
craft.productPriceHistory.anchor(variant|product|id). - Lowest price in the N days before a reduction started, the reduced price itself excluded (Zakon o zaštiti potrošača čl. 19, EU Omnibus).
craft.productPriceHistory.lowestBefore(variant). - Daily machine-readable price list (Odluka o objavi cjenika proizvoda i usluga, NN 101/2026): CSV and XML with the čl. III columns, file name per čl. VI, retention per čl. VII, public index page.
craft omnibus/price-list/publish. - Console commands
anchor/backfill(with--as-of),anchor/show,price-list/publish,price-list/preview. - Plugin settings: reference day, label, lowest-price window, store identity for the file name, publish directory and route, retention, CSV delimiter, field mapping for brand, barcode and unit of measure.
- Croatian translations for the control panel.
Changed
- Package renamed to
wmd/craft-omnibus; the plugin handleomnibusand theproduct_price_historytable are unchanged, so existing installs update in place.