<dkl-order-goal> with no code — you add it in the
theme editor and configure every option through its settings panel. It renders one order-goal
discount: the one chosen in its Discount picker, or the first eligible discount in the
shop feed when the picker is left empty.
Add the block
Open the theme editor
In the Shopify admin, go to Online Store → Themes and click Customize. Make sure
the Discount Kit Live app embed is enabled.
Settings
Every setting maps to adata-* attribute or --dkl-og-* token under the hood — see
Styling & Data Attributes for the equivalents.
Discount & layout
Show only this order goal discount. Leave empty to show the first one.
Horizontal, or Stacked (markers in a column, progress bar rotated).
Content
Shown until every tier is met. Use
[amount] for the amount to the next tier and
[discount] for its discount.Heading shown once every tier is met.
Body shown once every tier is met.
Use
[discount] for the tier’s discount.Use
[amount] for the tier’s minimum spend.Spacing & sizing
Space above the widget, 0–80px.
Space below the widget, 0–80px.
Inner padding of the card, 0–48px.
Inherit, or Custom. The two font-size settings below apply only when set to Custom.
Desktop font size, 10–32px. Custom only.
Mobile font size, 8–28px. Custom only.
Card corners, 0–24px.
Colors
The progress fill.
The unfilled progress track behind the fill.
Card background.
The headline / progress message.
The per-tier “Save [discount]” line.
The per-tier “when you spend [amount]+” line.
Marker background for tiers not yet met.
Marker background for met tiers.
Icons
Swaps the marker glyph for a custom image on percentage-discount tiers.
Swaps the marker glyph for a custom image on fixed-amount tiers.
Swaps the marker glyph for a custom image once a tier is met.
These icon images are an app-block-only feature — a web component
would set the marker glyph via CSS instead (the
--dkl-og-icon mask).Next steps
Web Components
The same component placed by hand, configured with
data-*.Styling & Data Attributes
The tokens, classes, and attributes behind these settings.