Is changing compare as price to 20% higher to advertise a 20% discount false advertising?

Hey @MagicalCat , thanks for sharing your snippet.

Does this script run in a browser when a page is loaded, or is this script run once, offline, directly against the back end?

Assuming the first, here’s what I understand: When a page (showing prices) is loaded in a browser, the “fake discount” function quickly updates each comparison price to 1.2 x the list price, and then it saves it to the back end using .trigger(“change”). When you want to revert, the “revert” function then recalculates all the comparison prices to equal the list price. Did I get that right?

Here are few comments:

  1. If you’re insistent on a 20% discount, you would want to multiply by 1.25 rather than 1.2. For example, if you want an $8 product to look discounted by 20%, you’d say the comparison price is $10, which is $8 x 1.25.
  2. Assuming this is run in the browser, when a page is loaded, this process is redundant. Person 1 loads a page of prices, and the comparison price is updated. Then person 2 loads, and the same comparison price is calculated again. I assume there is a way to run this once against the back end.
  3. When you revert, you might consider updating the comparison prices to ‘’ (empty string) rather than the list price, so that a visitor does not see “price: $8, comparison price: $8”. (Not sure, but maybe the comparison price properly disappears altogether if it’s empty.)

Anyway, hit me up if you want to talk about strategy. Ultimately, you’ll want to analyze whether the fake discount actually increased sales, or if folks were immune to it. Or maybe a 35% does the trick… In order to separate out that effect from seasonality, competition, layout, and whatever else is going on, you’d want to control the experiment a little more. Our app (https://apps.shopify.com/dash—in beta) is designed to help you with this.