Skip to content

Add the Price History blocks to your theme

Price History shows shoppers its information through three app blocks, which you place on your product page in Shopify’s theme editor. Use one, two or all three. Each block has its own settings for colours and sizes, so it matches your store.

Block What shoppers see Use it if…
Price note a “Lowest price in 30 days” badge after a price drop, and the prior cheapest price next to a crossed-out price, optionally with the saving as a percentage you sell to shoppers in the EU or EEA, or want the badge
Price history: On page a chart of the price over time and a 30-day summary, on the product page, always open (the default) or behind a button you want the history on the page itself
Price history: Side panel the same chart and summary, in a panel that slides in from a button, pill or text link you want to keep the product page short

The two Price history blocks show the same panel. Most stores use one of them, plus the Price note.

For the full story, read how to show price history on Shopify.

The quickest way is from the app. It opens the theme editor with the block already added.

  • On the Storefront page: click Add to theme under On page, Side panel or Price note.
  • On the Dashboard: the setup step Show price history on your product pages has the same Add to theme buttons, until one of the blocks is on your live theme. Read What’s in the set-up guide?

Then, in the theme editor:

  1. Move the block to where you want it, for example just under the price.
  2. Change its settings if you like (see below).
  3. Click Save.

To add a block by hand: in Shopify’s admin, go to Online Store › Themes and click Customize. Open a product page, click Add block in the product information section, and pick the block from the list of apps. The blocks only work on product pages.

The app’s Storefront page shows each block as its own unit, with a coloured dot. The Price history view card has the On page and Side panel blocks, and the Price note card has the Price note.

Dot It says What it means
green Visible · Edit The block is on your live theme, and shoppers see it.
amber Not visible · Edit The block is on your live theme, but hidden with the eye icon in the theme editor.
grey Add to theme The block isn’t on your live theme. Click to open the theme editor with it added.
  • A block added twice shows twice, so a copy added by mistake is easy to spot. Each unit also names the product template it’s on.
  • Edit opens the theme editor on that block’s product template. It doesn’t select the block itself, so click the block in the editor’s list.
  • The page checks your published theme, so a block you added to an unpublished theme doesn’t count.

Two things, each on its own rules. Either, both or neither can show on a product:

  • The badge, “Lowest price in 30 days”: after a price drop, when today’s price is the lowest you’ve charged in the last 30 days. Crossed-out prices don’t count.
  • The note, “Prior cheapest price” and the price, with an ⓘ: when the product has a crossed-out price that differs from the prior cheapest price. The ⓘ explains it: “The lowest price we charged in the 30 days before this price cut.” If Price History started tracking less than 30 days before the cut, it says so, with the date.

The note can also start with the saving as a percentage, such as “-11% Prior cheapest price €90.00”. It’s off by default: turn on Show the saving as a percentage in the block’s settings. The percentage is:

  • worked out from the prior cheapest price, never from the crossed-out price
  • rounded down to a whole number, so it never overstates the saving
  • shown only with the note, and only when the saving is 1% or more
  • written the way the shopper’s language writes percentages, such as “-11 %” in German

You choose which countries see the badge and the note on the Storefront page, and change their wording on the Labels page. Read how the prior price is worked out, and how to show the lowest price in the last 30 days on Shopify.

Price note settings:

  • Badge and note: Badge above the note, or Side by side when there’s room
  • Alignment
  • Font size (px): 14 by default, from 10 to 32. The badge and the ⓘ explanation follow it.
  • Margin top (px) and Margin bottom (px): 8 by default, up to 64. 0 means no margin. When neither the badge nor the note shows, the block takes no space.
  • Badge: Background and Text colours
  • Prior cheapest price: Text colour (leave it empty to use your theme’s text colour), Show the saving as a percentage (off by default) and Percentage colour (leave it empty to use the note’s colour)
  • Debug in theme editor: off by default. In the theme editor only, it shows the badge and the note even on a product where shoppers wouldn’t see them, so you can check their look, and your browser’s console says why each part shows to shoppers or not. Read Why isn’t a block showing in the theme editor?

The panel is the same in both Price history blocks:

  • A chart of the price over time, with tabs for 1M, 3M and 1Y. The longer tabs appear once the history goes back that far. The chart labels the period’s highest and lowest prices. During a price cut, a third line can mark the prior cheapest price, in the countries where the Price note shows it.
  • A 30-day summary, in a sentence or two. For example: “Over the past 30 days, the price has ranged from €40.00 to €50.00.” When the price is cut, it also gives the prior cheapest price, in the countries where the Price note shows it. The summary always covers the last 30 days, whichever tab is open.
  • A list of changes (off by default), 10 to a page.

It follows the variant the shopper picks. Pointing at or tapping the chart shows each price, the date it began, and any label. Under the summary, a note says prices are the listed price, before discount codes and shipping.

You choose which countries see it, how far back, and when it shows, on the Storefront page.

What are the Price history: On page settings?

Section titled “What are the Price history: On page settings?”
  • Show the chart and list: Always open (the default: the panel shows on the page under a “Price history” heading) or Behind a button (shoppers click “Price history” to open it). A block that’s already on your theme keeps the setting it was saved with.
  • Accent colour: the chart’s line, the shading under it, and the range tabs
  • Show chart, Show the 30-day summary and Show change list
  • Max prices in the list: leave it empty for all of them, up to 100
  • Link the chart and change list: pointing at a price in the list shows it on the chart, and the other way round. It needs both the chart and the list.
  • Font size (px): 14 by default, from 10 to 32. The chart’s labels and tabs scale with it.
  • Margin top (px) and Margin bottom (px): 14 by default, up to 64. 0 means no margin.
  • Debug in theme editor: off by default. In the theme editor only, it shows the panel even on a product where shoppers wouldn’t see it, once a price is recorded, so you can check its look, and your browser’s console says why it shows to shoppers or not. Read Why isn’t a block showing in the theme editor?

What are the Price history: Side panel settings?

Section titled “What are the Price history: Side panel settings?”
  • Style: Text link, Pill or Button
  • Accent colour: the chart’s line, the shading under it, and the range tabs. It also colours the button, unless you set the button’s own background
  • Button or link: Text colour, Font size (px), Margin top (px) and Margin bottom (px). For a pill or button, also Background, Padding left and right (px) and Padding top and bottom (px). For a button, also Corner radius (px).
  • Panel: what it shows (chart, summary, list, as above), its Background, Text and Font size (px), and Slides in from: Left (the default) or Right, the same side in every language
  • Debug in theme editor: off by default. In the theme editor only, it shows the button or link and the panel even on a product where shoppers wouldn’t see them, once a price is recorded, so you can check their look, and your browser’s console says why they show to shoppers or not. Read Why isn’t a block showing in the theme editor?

The button or link says “Price history”. You can change that wording on the Labels page.

Number settings have limits, and each box’s help text says them, for example “Default: 14px, from 10 to 32px.” A number outside them is brought back inside, so 900 in a margin box gives 64px.

Will the blocks slow my product pages down?

Section titled “Will the blocks slow my product pages down?”

No. Each product’s price history is saved in your Shopify store itself, so the blocks show with the rest of the page, without waiting on our servers. They make no requests while the page loads. After that, they make only small ones: they fetch the block again when a shopper picks another variant (unless your theme already redraws it), and they count a view, only when Shopify’s consent tools allow analytics for that shopper.

No. The blocks never show the Price History name or a link to us, on any plan.

Why isn’t a block showing in the theme editor?

Section titled “Why isn’t a block showing in the theme editor?”

With Debug off, the theme editor shows each block exactly as shoppers see it, so a block that wouldn’t show to shoppers on that product doesn’t show there either. To find out why, select the block, turn on its Debug in theme editor setting, and open your browser’s developer console. In Chrome, for example, right-click the page, choose Inspect, then open Console.

Debug is off by default and only works in the theme editor. With it on:

  • Parts shoppers wouldn’t see on that product show anyway, so you can check their look while you set up:
    • Price note: the badge and the note. If the product has no prior cheapest price of its own, the note shows the crossed-out price, or today’s, in its place. The percentage still shows only where shoppers would see it.
    • On page and Side panel: the panel, and the Side panel’s button or link, once a price is recorded for the product and something is ticked in the block’s settings.
  • The console says which parts show only because Debug is on, and why shoppers don’t see them, with the numbers behind it, such as today’s price, the 30-day low and the prior cheapest price. Look for the group headed “📈 Price History.io · Debug”.

Shoppers never see any of it. Debug left on changes nothing in your live store.

The usual reasons a block doesn’t show:

  • On the Free plan, or on Unlimited with Show on all products off, the product isn’t one of your chosen products.
  • The product’s price hasn’t changed yet, or not in the time shoppers can see.
  • The price history is hidden in the country you’re previewing from.
  • For the price history panel: today’s price doesn’t fit When to show it on the Storefront page.
  • For the Price note: neither the badge nor the note applies to this product (read What does the Price note show?), or both are turned off on the Storefront page.

To style a part of a block, turn on Debug, or preview a product where shoppers see it. A Price history block with the chart, summary and list all turned off shows nothing, even with Debug on.

Read common questions for more.

I’m a theme developer. Where are the technical details?

Section titled “I’m a theme developer. Where are the technical details?”

Read the theme developer guide. It covers every setting and its default, how the blocks follow variant and currency changes, and which CSS classes and custom properties your theme can rely on.

Need a hand? Email support@pricehistory.io.