Start Trial
Home / Documentation / Shortcodes

Shortcodes

Place the quantity break buy box anywhere in WordPress — pages, posts, widgets, templates.

Main Shortcodes

[drbu_buy_box] (or [tiered_buy_box]) — current product

Renders the buy box for the product currently displayed. Use it inside single product page templates, custom builders (Elementor, Divi, Gutenberg), or product descriptions.

[drbu_buy_box]

[drbu_buy_box id="123"] — specific product

Renders the buy box for a specific product on any page (landing pages, promotional pages, blog posts). The product must be purchasable and have a active price.

[drbu_buy_box id="123"]

[drbu_analytics] — Embed Revenue Analytics

Renders the live DRBU Revenue Analytics summary dashboard anywhere in the WordPress admin or custom client reporting dashboards.

[drbu_analytics]

Legacy Shortcodes & Aliases

[order_now_5]

Backward-compatible alias that accepts legacy inline attributes discount2, discount3, note1, note2, note3. For sites migrating from earlier versions, [poruci_odmah_5] and [poruci_odmah_4] are also supported.

[order_now_5 discount2="40" discount3="25"]

Placeholders

Text fields (package titles, notes, CTA buttons, badges, cart labels) support these placeholders, replaced with real values at render time:

PlaceholderReplaced withExample output
{price}The total price of the pack$28.80
{save}The amount saved on the pack$7.20
{qty}The quantity in the pack2
{unit_price}The price per single unit$14.40
{d2}The tier-2 discount value40%
{d3}The tier-3 discount value25%

Examples

Package note for the 2-piece tier:

Second item − {d2} · You save {save}

Cart label placeholder:

Pack of {qty} pieces
💡 All changes to the settings take effect immediately on the shortcode output — no cache clearing required.