Compute discounts and sale prices

Map your sale price, and let MartechFlow compute the percent off automatically for badges, custom labels, and segments.

Compute discounts and sale prices

How sale pricing works

Two fields drive every discount in MartechFlow: Price (your regular price) and Sale price (the discounted price, when there is one). Map both in the Fields tab and the rest follows.

Channels show their own native sale badge when both prices are present, so the most important thing is to map Sale price correctly. If you also map Sale price effective date with a date range, channels can show the sale only during the window you set.

  1. 1Go to the Fields tab and map Price to your regular price column.
  2. 2Map Sale price to your discounted price column.
  3. 3Optionally map Currency (defaults to USD if left blank) and Sale price effective date for a timed sale.
  4. 4Save your mappings.

The automatic discount value

From Price and Sale price, MartechFlow derives a "discount" value: the whole-number percent off. For a $100 item on sale at $75 that is 25.

The rule is deliberately strict so you never show a fake or broken discount. The discount is only computed when there is a real markdown: the price must be a positive number and the sale price must be lower than it. If there is no sale price, or the sale price is the same as or higher than the price, the discount comes out blank rather than 0 or a negative number.

  • Price 100, sale 75 gives discount 25.
  • Price 50, sale 50 gives blank (no real markdown).
  • Price 80, no sale price gives blank.
  • The percent is rounded to a whole number.

Show the discount on your product images

The most common use of the computed discount is an "X% off" badge on the product image. In the Image tab's badge editor you can place a badge whose text is built from the discount value, so it reads "25% off" and updates automatically as your feed prices change.

Because the badge is computed from feed data, products with no real markdown simply get no badge (the discount is blank for them), and products that go on sale get one on the next run. Promo overlays go only to channels that allow them (Meta, TikTok, Snapchat, Pinterest). Google and Microsoft always get the clean original image to avoid disapprovals.

Use the discount in labels and segments

The discount value is also available when you build segments (Product Sets) and custom labels. For example you can group every product where discount is greater than 30 into a "Big sale" segment, or set a custom label to "SALE" for any product that has a discount.

This lets you bid differently on deep discounts, or feature them, without hand-tagging products. As prices change, membership updates on the next run.

Questions

Do I have to type the discount percentage myself?

No. Map Price and Sale price, and MartechFlow computes the percent off for you. It is recalculated every run, so it always matches your current prices.

Why is my discount blank?

The discount is only shown for a genuine markdown: a positive regular price with a lower sale price. If the sale price is missing, equal to, or above the regular price, the discount stays blank on purpose.

Will the discount show up in my output feed columns?

Channels render their own sale badge from Price and Sale price, so you usually map those rather than output a raw percent. To output the percent as text, use it in an image badge, a custom label, or a built-from-pieces template.

How do I limit a sale to certain dates?

Map Sale price effective date to a date-range column. Channels then show the sale only inside that window.

Ready to try it?

Start free, no credit card. Your first feed can be live in minutes.

Start free