Skip to content
Docs

App block

The DK: Component app block renders <dkl-volume-table> with no code. You build the table once in the Shopify admin — columns, colours, labels — then pick it in the block. It’s available on product templates.

  1. Create the component

    In the Shopify admin, go to Discount Kit → Components and choose Create component, then Discount component. Pick the volume discount, then Volume table. Customise it against the live preview and save it.

  2. Open the theme editor

    Online Store → Themes → Customize. Make sure the Discount Kit Live app embed is enabled.

  3. Add DK: Component

    In the section where you want the table, click Add block and choose DK: Component, then position it beside the product form.

  4. Pick your component

    Set the block’s Component setting to the one you created.

Everything below is set on the component in the admin, not on the block. Each control maps to a data-* attribute or a --dkl-* token underneath — see Styling & Data Attributes for the equivalents.

Group What’s in it
Layout Margins, cell padding (vertical and horizontal), corner radius, and under Borders: the border width plus switches for the outer border, the row lines and the column lines
Colours Header background and text, row background and text, the unlocked row’s background and text, the border
Typography Header, row and message sizes, header and unlocked-row weights, heading and body font families
Text The three column labels, the “off each” suffix, and an optional message above or below the table
Behaviour The savings and price columns, an undiscounted first row, quantities as ranges, highlighting the unlocked tier, and where the message sits