Countdown bars, free planInstall
Content blocks

How to show a coupon code with a copy button

Show a discount code in your FlexiBar announcement bar that shoppers can copy with one click, and style how the code looks.

3 min readUpdated

Applies to: Free and Pro plans

Turn on the Coupon Code toggle in the Contents tab and type your code. Shoppers see the code in the bar and copy it with one click.

Before you start

FlexiBar shows the code. It does not create the discount. Create the discount code first in your Shopify admin under Discounts, then type exactly the same code in FlexiBar.

Add a coupon code

  1. Open your bar in FlexiBar, or click Add New Announcement Bar. You can also start from the Coupon Code template.
  2. On the Contents tab, write your message, for example "Get 15% off your first order".
  3. Turn on the Coupon Code toggle.
  4. In Coupon Code, type the code exactly as it is in Shopify, for example WELCOME15.
  5. Optional: add Label Text that appears before the code, for example "Use code:".
  6. Choose a Display Style: Box (Default), Pill, Dotted Outline, Dashed Outline or Solid Block.
  7. Check the live preview, then click Save or Save & Publish.

Style the code

Click Advance Settings to:

  • Pick a Code Icon (optional): tag, ticket, gift, star, percentage, scissors, lightning or a percent circle. Choose None for no icon.
  • Set the Code Background and Code Text Color.
  • Set the Label Text Color.

What shoppers see

The code shows in the bar as a button. When a shopper clicks it, the code is copied to their clipboard and the button shows "Copied!" for a moment. They can then paste the code at checkout.

Tips for coupon bars

  • Keep the code short and easy to type, in case a shopper writes it down instead of copying it.
  • Say what the code gives and any condition: "15% off orders over $50".
  • If the offer ends on a set date, add a Countdown to the same bar, and on Pro schedule the bar to end when the code expires.
  • Test the code at checkout yourself before you publish the bar.

Good to know

  • Copy clicks are tracked and counted in FlexiBar analytics.
  • On Multiple Message bars (Pro), each slide can show a different coupon code.
  • A coupon code can sit in the same bar as a Button and a Countdown. Check the mobile preview to make sure it all fits.
  • Selling Bar bundles do not use coupon codes. Their price is applied automatically in the cart.

Questions

Does FlexiBar create the discount code for me?
No. Create the discount in your Shopify admin under Discounts first, then type the same code in the Coupon Code field in FlexiBar.
Can I see how many shoppers copied the code?
Yes. Copy clicks are tracked and included in the bar's click numbers in FlexiBar analytics.
Can I show different codes to different shoppers?
One bar or slide shows one code. On Pro you can use a Multiple Message bar with a different code on each slide, or publish separate bars with country targeting.
Learn moreCoupon code features

Still need help?

Chat with us in the FlexiBar app or email support@shopiment.io. Free human support is included on every plan.

Don't have FlexiBar yet?

FlexiBar has a free plan. Pro is $9.99 a month with a 14-day free trial.

Install FlexiBar - Free Plan