Prishistorik og Omnibus-direktivet
Shoporama logger automatisk prisændringer og beregner den korrekte førpris iht. Omnibus-direktivet (EU 2019/2161). Standardtemaerne understøtter det som temaindstilling, og brugerdefinerede temaer kan bruge getLowest30DayPrice().
What is the Omnibus Directive?
The Omnibus Directive (EU 2019/2161) is implemented in Denmark via Section 9a of the Danish Marketing Practices Act. The rule is simple: When advertising a price reduction, you must show the lowest price you have applied in the last 30 days before the reduction.
For example, if you reduce an item from DKK 500 to DKK 399, the crossed out "previous price" must be the lowest price the item has had in the last 30 days - not necessarily the normal list price.
The Consumer Ombudsman actively enforces the rule and violations can result in fines.
How Shoporama helps
Shoporama automatically logs all price changes on your products - whether the change is made via admin, CSV import, REST API or automatic feeds. The log is used to calculate the correct previous price (lowest price in the last 30 days).
The feature consists of three parts:
- Automatic price logging - All price changes (normal price and offer price) are logged with a timestamp
- 30-day calculation - The system automatically calculates the lowest price from the last 30 days
- Display in theme - The pre-price is automatically displayed in the default themes
Activate price logging
Price logging must first be enabled for your online shop. Go to Products → Price history in the administration and enable Price logging. All price changes will then be logged automatically.
Show pre-price in your theme
How the pre-price is displayed depends on whether you are using one of Shoporama's default themes or a custom theme.
Default themes (Delaware, California, Alaska2)
If you're using one of Shoporama's default themes, then you can enable the pre-price display via a theme setting. Go to Design → Theme settings and find the setting:
- Show pre-price according to. Omnibus directive - Enable this to show the calculated pre-calculated price automatically
When this option is active and a product has an offer price, the pre-price is automatically displayed in two ways depending on the situation:
- The pre-price is higher than the offer price: The crossed out price is replaced with the lowest price from the last 30 days. For example:
450 kr.399 kr. - where 450 kr. is the calculated pre-offer price - Previous price is lower than or equal to the offer price: The normal price display is maintained and an extra line is shown below the price: (Lowest price in the last 30 days: 350 kr.)
If there is no price history yet (e.g. for new products), the normal list price is shown as the pre-price.
Custom themes
If you are using a custom theme, you need to add the display in your templates yourself. Use the following Smarty code where the crossed out price is displayed:
<{if $product->getSalePrice()}> <{$lowest = $product->getLowest30DayPrice()}> <{if $lowest}> Preprice: <{$lowest|number_format:2:",":"."}> <{$webshop->getCurrency()}> <{/if}> <{/if}>The getLowest30DayPrice() method returns the lowest regular or promotional price from the last 30 days including VAT. It returns null if there is no price history, in which case you can fall back to the normal list price.
Price history in the administration
You can view the entire price history under Products → Price history in the administration. Here you can:
- Search by product, item number or variant
- Filter by date range
- View old and new prices with color coding
- Export to CSV (for documentation in case of audits)
What is logged?
Price logging covers:
- Changes to normal price and offer price
- Variant-specific price changes
- Changes from all channels: admin, import, REST API, price feeds
The log does not cover promotional discounts calculated dynamically in the basket, volume discounts, loyalty programs or personal discount codes - as these are not "advertised price reductions" in the legal sense.
Read more about the rules
- The Consumer Ombudsman's price marketing guidelines - The official guide with examples and rules
- Prices and savings claims - The Consumer Ombudsman's overview of the rules
- The Danish Marketing Practices Act (LBK no 866 of 15/06/2022 ) - The full legal text including §9a on price reductions
- DI Handels guide to price marketing - Practical guide from the Confederation of Danish Industry
Do you have any questions?
Contact us at support@shoporama.dk if you have any questions about the price history or the Omnibus Directive.