Skip to main content
With dynamic discounts, PricePirate lowers the price a variant advertises on the marketplace without touching the regular price in your Shopify shop. Instead of overwriting the variant price directly, PricePirate creates a Shopify discount code and an offer link that applies the discount automatically. Only shoppers who arrive through that link get the lower price — your regular shop price stays unchanged for everyone else. This wins you a better position on Idealo and other marketplaces without cutting your margin on direct sales through the shop.
Dynamic discounts are an alternative to direct price changes. With a direct change, PricePirate writes the new price to Shopify; with a dynamic discount, the regular price stays and the discount applies only through the offer link and the discount code.

Enable it

Dynamic discounts are enabled on two levels:
  1. Shop-wide in Settings under Dynamic discounts. This toggle unlocks the feature for the whole shop and sets the settings below.
  2. Per product in the Strategy settings dialog or on a pricing strategy template. Only once a variant (or its template) uses dynamic discounts does a price decrease create a discount instead of a direct price change.
When you enable it per product, you confirm a notice dialog. A variant linked to a template follows the template’s setting.

Settings

In Settings under Dynamic discounts you define shop-wide how generated discounts look:

The discount box

So that the discount shows on the product page, add the discount box (“Discount box” in the theme editor) to your theme. It shows visitors the discounted price and the discount code. To add the discount box:
  1. In the Shopify admin, open Online Store → Themes → Customize.
  2. Select a product page template.
  3. Click Add block and choose Discount box by PricePirate.
  4. Place the block where you want it and save.
Use the Main text field to adjust what the box shows. The following placeholders are available: Optionally, the box shows a second line with a “Valid until” note and the date the code is valid through. You turn this line on or off with Show expiry line. You adjust the box’s appearance and colors to match your theme through the block’s remaining settings.
Without the discount box the discount still works through the offer link and the code — but the discounted price is not shown on the product page.

Dynamic discounts in price changes

When a strategy generates a decrease for a variant with dynamic discounts, the change appears under Review price changes as usual. The row shows the regular price as the new price and, next to it, a clickable discount chip with the discount amount (for example −5.70 €). For applied discounts, the chip opens an action menu:
  • See discount on Shopify — opens the discount in the Shopify admin.
  • Copy discount code — copies the discount code to the clipboard.
  • Copy offer link — copies the offer link to the clipboard.
  • Delete discount — removes the discount after a confirmation. Already distributed or cached links to this code stop working afterward.
Manage and delete dynamic discounts only through the action menu in PricePirate. Editing or deleting such a discount directly in Shopify can leave it in a corrupted state — shoppers may then get a broken discount link or see an incorrect discount on the product page.

Good to know

  • The target price must be below the regular price. The discount is subtracted from the current price. If your strategy calculates a price above the regular price, the change is recorded as Invalid.
  • Several codes can exist at the same time. Each discount code is valid for the advertised duration (default: 24 hours). When a new decrease creates another code, the offer link always points to the newest discount; older codes stay valid until the end of their own window.
  • Only through the link or code. The discount goes only to whoever uses the offer link or enters the code. The regular price in the shop stays unchanged.

For marketplace connectors

PricePirate stores the discount on each variant in four metafields in the price_pirate namespace. A marketplace connector (for example the Idealo feed) reads these fields to advertise the discounted price and the offer link. For the offer URL in the connector, use offer_url while it is set and otherwise fall back to the regular product URL. With Liquid:
The connector must support Liquid templates. If your connector does not use Liquid, use a supported connector such as idealo EasyConnect.

Settings

Enable and configure dynamic discounts shop-wide.

Strategy settings

Enable dynamic discounts per variant.

Review price changes

Review and manage generated discounts.

Idealo repricing

Improve your position on Idealo.