Start Trial
Home / Documentation / Product Page Display & Integration

Product Page Display & Integration

All placement and override options live in WooCommerce → Discount Rules Box → Integration.

Automatic Display

When enabled (default), the buy box is inserted automatically on simple WooCommerce product pages. No shortcode needed.

Replace Default Add to Cart

When enabled (default), the standard WooCommerce add-to-cart form is replaced by the DRBU buy box on active products. Disable this option to keep the default button and place the buy box with the [tiered_buy_box] shortcode instead.

Hide Default Product Price

Enabled by default to avoid a duplicated WooCommerce price next to the buy box. Works for block themes (via a body class + CSS) and classic themes (via remove_action()). The standard price is only hidden when the buy box is active.

Category & Shop Pages Upsell Popup

When enabled, clicking "Add to cart" on a product in category, shop or archive grids opens an interactive buy box modal instead of the default behavior — turning archive visitors into 2- and 3-pack buyers without leaving the page. The modal is rendered via AJAX (drbu_get_modal_box) into a lightbox container injected in the footer.

Product Restrictions

In the Specific Product Restrictions field enter comma-separated product IDs (e.g. 12, 45, 78). When set, the buy box appears only on those products. An empty field means all simple products.

Category Restrictions

Restrict the buy box to entire WooCommerce categories with the Category Restrictions selector. Choose which categories get the quantity break buy box — everything outside the selection keeps the standard Add to Cart.

Settings Reference

All placement logic lives in the Integration tab and is stored in drbu_settings:

OptionDefaultWhat it controls
drbu_auto_insert_productyesAuto-insert the buy box on simple product pages (hook woocommerce_single_product_summary, priority 35).
drbu_auto_insert_product_ids''Comma-separated product IDs that restrict the auto-insert (empty = all simple products).
drbu_auto_insert_category_ids[]Product category IDs that restrict the auto-insert.
drbu_replace_add_to_cartyesRemove the standard WooCommerce add-to-cart form (woocommerce_template_single_add_to_cart) when the box is active.
drbu_hide_default_pricenoHide the default price via body class drbu-hide-default-price (block themes) and remove_action() (classic themes).
drbu_enable_category_popupyesEnable the archive/shop/category "Add to cart" quick-modal popup.
ℹ️ Restriction rules: if both product and category restriction lists are empty the box runs storewide; if either list is set, the box appears only on matching products or categories.

Manual Placement with Shortcodes

For full control, place the buy box anywhere with:

  • [tiered_buy_box] — renders the buy box for the current product.
  • [tiered_buy_box id="123"] — renders the buy box for product ID 123 on any page.
  • [order_now_5] — legacy shortcode, still supported.

See Shortcodes for details and placeholders.

💡 Best practice: enable automatic display on your hero products, use [tiered_buy_box] on landing pages and blog posts, and enable the category popup for archive grids.