Skip to content

How Do I Run a Discount Code Campaign for B2B Buyers?

You want to give specific wholesale customers a private code - say VIP20 for 20% off, or FREESHIP to waive shipping - with an optional redemption cap and an expiry date. BSS B2B Solution’s Discount Code module handles this in the cart (before Shopify checkout) so the discount is visible in real time, without requiring a Shopify coupon.

Discount Code box: Discount code applied successfully, 20_PERCENT_OFF (-20%)

What your customers see on the storefront.


  1. In the BSS B2B Solution admin, go to Discount Codes (under B2B Discounts).
  2. Toggle Enable to on and click Save.

The module must be enabled before any rule fires on the storefront.


Click Add rule to open the rule editor.

  • Rule Name: e.g. “VIP Summer Campaign 20% off” (internal only).
  • Status: Active.
Field Value for this example
Discount Code VIP20
Discount Type Product Discount - reduces each eligible line item individually
Discount Value Type Percentage
Discount Value 20
Case Sensitive Off (so vip20 and VIP20 both work)
  • Apply To: Customer tags > vip.
  • Shoppers without the vip tag who enter the code see an error: “Failed to apply this discount code.”
  • Product Condition Type: All products (or scope to a collection/tag if the discount is product-specific).
  • Start Date: the campaign launch date.
  • Enable End Date: on. End Date: the campaign close date (e.g. 30 days later).
  • Total redemption limit: 500 (campaign-wide cap).
  • Per-customer limit: 3 (each vip customer can use the code up to 3 times).
  • Show remaining count: off (avoids scarcity anxiety in this example; toggle on if you want to surface it).

Save the rule.


Step 3: Create a free-shipping code rule (optional)

Section titled “Step 3: Create a free-shipping code rule (optional)”

To additionally give tagged customers free shipping:

  1. Click Add rule again.
  2. Rule Name: “VIP Free Shipping”.
  3. Discount Code: FREESHIP.
  4. Discount Type: Free Shipping.
  5. Customer Conditions: Customer tags > vip.
  6. No per-customer or total limit needed (optional).
  7. Save.

When a vip customer enters FREESHIP in the cart, the widget shows FREESHIP (Freeshipping). No line-item price changes; the free-shipping signal is forwarded to checkout where Shopify removes the shipping charge.


Step 4: Add the Discount Code block to your theme

Section titled “Step 4: Add the Discount Code block to your theme”

The code entry widget requires two things:

  1. App Embed (required for config injection): In Online Store > Themes > Customize > App embeds, toggle BSS B2B Solution on and Save.
  2. Discount Code block (the visible widget): In the Theme Editor, navigate to the Cart section, click Add block, and add Discount Code from BSS B2B Solution Extensions. Confirm the block placement and Save.

Without the block added to the cart template, the input field never renders for shoppers.

See Set Up Discount Code for block settings, design customization, and shareable links.


Store: B2B apparel distributor. Campaign: VIP20 - 20% off all products for vip-tagged customers, capped at 500 total uses, 3 per customer, active for 30 days.

Shopper Code entered Result
Logged-in vip customer, cart $300 VIP20 Each line item discounted −20%; cart shows $240. “Discount code applied successfully” in green.
Logged-in vip customer, entering FREESHIP FREESHIP No price change on items; “FREESHIP (Freeshipping)” badge in cart; shipping fee waived at checkout.
Logged-in customer without vip tag VIP20 “Failed to apply this discount code, please try another.” No discount applied.
After 500 total redemptions VIP20 “Discount code is no longer available.”

Cart after the code: each line shows the original price struck through and the discounted price

Pricing stack: Discount Code runs after Custom Pricing and Volume Pricing and BOGO . The 20% Discount Code reduction stacks on top of whatever the post-Volume Pricing price already is.


Feature Role in this scenario Notes
Discount Code ✅ Cart-level code scoped to vip tag; 20% off + optional free shipping - runs after Volume Pricing and Buy One Get One
App Embed ✅ Required to inject config Enable in Online Store > Themes > Customize > App embeds
Discount Code block ✅ The visible input widget Must be added to the Cart template in the Theme Editor separately from the embed