Buy Now Button Shortcode [dcbnb_buy_now]

Buy Now Button
Updated Nov 8, 20261 min read

The [dcbnb_buy_now] shortcode places a Buy Now button anywhere: a page, a post, a widget or a page builder text block.

The Shortcode card on the Buy Now tab, with copy buttons.
The Shortcode card on the Buy Now tab, with copy buttons.
[dcbnb_buy_now product_id="123"]
[dcbnb_buy_now product_id="123" text="Order Now" qty="2" class="my-class"]
AttributeUse
product_idThe product to buy.
textButton text.
qtyQuantity.
classYour own CSS class.

On Elementor, Divi or Bricks product templates that skip WooCommerce’s buttons, Buy Now is added after the product description automatically; the shortcode lets you place it exactly.