---
title: "Discussion on \"Where EU shops hide the 30-day lowest price before Black Friday\" | Hashnode"
description: "Discussion on \"Where EU shops hide the 30-day lowest price before Black Friday\". I already wrote about the EU 30-day rule: when a shop announces a discount, the crossed-out \"old\" price is supposed to be the lowest price it charged in the previous 30 days. This post is a walk throu"
url: "https://hashnode.com/posts/where-eu-shops-hide-the-30-day-lowest-price-before-black-friday/6af347842221e1c8e8eb5c63"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Where EU shops hide the 30-day lowest price before Black Friday](https://emirmrkaljevic.hashnode.dev/where-eu-shops-hide-the-30-day-lowest-price-before-black-friday?utm_source=hashnode&utm_medium=feed)

I already wrote about the EU 30-day rule: when a shop announces a discount, the crossed-out "old" price is supposed to be the lowest price it charged in the previous 30 days. This post is a walk throu

Nov 10 · 6 min read · emirmrkaljevic.hashnode.dev  
Read the article

-   [#black-friday](https://hashnode.com/tag/black-friday)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Emir Mrkaljevic](https://hashnode.com/@emirmrkaljevic)

@emirmrkaljevic

  
[View profile](https://hashnode.com/@emirmrkaljevic)

## Responses 2

Markdown supported · ⌘↵ to post

[OneLifeVibe](https://hashnode.com/@onelifevibe)

[Nov 10](https://hashnode.com/posts/where-eu-shops-hide-the-30-day-lowest-price-before-black-friday/6af347842221e1c8e8eb5c63/comment/6af34b88cfe0acbe273e7f90)

The MediaMarkt data-test distinction is the detail that stuck with me — rrp, previous and lop/lowest can all sit in the same struck-price slot, and treating an RRP as a 30-day low would make a fake discount look real. The Euronics Italy example drives it home the same way: prezzo precedente is the 30-day figure, prezzo consigliato is just the manufacturer's recommendation, and the page puts them close enough together to confuse a generic scraper. I also liked the honesty about the 1,599.00 parsing fix — a price cut off after the first digits silently corrupts every comparison downstream, which is exactly the kind of quiet error that only shows up when you test against saved pages instead of live ones.

[Emir Mrkaljevic](https://hashnode.com/@emirmrkaljevic)

[Nov 11](https://hashnode.com/posts/where-eu-shops-hide-the-30-day-lowest-price-before-black-friday/6af347842221e1c8e8eb5c63/comment/6af34b88cfe0acbe273e7f90#reply-6af418089baec0c877472389)

Thanks! Yes, that slot is the trickiest part. On MediaMarkt the same struck-through price can be an RRP, the previous price, or the 30-day low, and only the data-test attribute tells them apart. So truediscount reads that attribute first and only counts a price as the 30-day reference when the shop labels it that way. An RRP gets its own warning instead of a green badge.
