To give military members and first responders a discount on Shopify, tag them military or first-responder once you have checked their ID, then create a discount in OneCode: Stackable Discounts with the Global Condition Customer Tag Is one of military, first-responder. One automatic discount can give them 10% off everything and free shipping. Only logged-in customers with one of those tags get it.

Example: a logged-in customer tagged first-responder buys a $90 jacket and a $30 cap. Each item gets 10% off, so the jacket is $81 and the cap is $27. The items come to $108 instead of $120, and the $8 shipping is free, so they pay $108. The same person checking out as a guest pays $120 plus $8 shipping, $128 in total.

Military and first responder 10% at checkout for a signed-in customer tagged first-responder. The $90 Waxed jacket is $81, the $30 Canvas cap is $27, Economy shipping is free instead of $8, and the total is USD $108.00.

Who checks eligibility

You do. Shopify and OneCode don’t verify anyone. You decide who qualifies, check their ID, and add the tag to their customer account in Shopify admin. You can tag customers by hand, or use a verification service that adds the tag for you. OneCode only reads the tag.

Set it up

  1. In Shopify admin, open each customer you have checked and add the tag military or first-responder.
  2. In OneCode, click Create discount and choose Automatic discount. Enter a Title such as Military and first responder 10%. Customers see the title in their cart and at checkout.
  3. Under Global Conditions, click Add Condition. Set Field to Customer Tag and keep Is one of. In Select or enter customer tags, pick or type military, then first-responder.
  4. Click Add Discount Type. Keep Discount Type on Product Discount and Value Type on Percentage, enter 10 in Percentage, and keep Target as All Products.
  5. Click Add Discount Type, set Discount Type to Shipping Discount, and keep Free Shipping.
  6. Click Save discount.

The OneCode editor for the automatic discount Military and first responder 10%: Customer Tag is one of military, first-responder under Global Conditions, a 10% Product Discount on All Products, and a Free Shipping discount on all rates

Is one of means the customer needs at least one of them, so one discount covers both groups.

Every Global Condition must be met for anything on the discount to apply. A customer without either tag gets neither the 10% nor the free shipping. The 10% and the free shipping sit on one discount behind one tag check. With Shopify’s own discounts, they would be two separate discounts.

Things to check before you launch

  • Customers must be logged in. Tags are only known for logged-in customers, and guests have no tags. When you tag someone, tell them to sign in to their account before checkout.
  • Type tags exactly as they are spelled on your customers. first-responder and First Responder are different tags.
  • Code or automatic. If you’d rather customers type a code, choose Discount code in step 2. The tag still keeps everyone else out, so a code shared online only works for logged-in customers with the tag.
  • Free shipping from another offer. Between separate discounts, Shopify applies only one shipping discount per order, the one that saves the most.
  • Other codes at the same time. If a tagged customer also enters a sale code, both apply only when Combinations allows it on both discounts. See discount combinations.

Customers who check out as guests

If many of your military and first responder customers check out without logging in, use a Shopify customer segment of those customers instead of the tag. Add the Global Condition Customer Segment and pick the segment. Shopify matches a segment by the logged-in account, or by the email or phone number entered at checkout, so a customer in the segment who checks out as a guest with the same email can still get the discount.

Global Conditions with Field set to Customer Segment and the segment Repeat customers selected

Customer Segment is only available as a Global Condition, and it can only include customers. To leave a group out of a discount, use a tag with Is not one of, as in keeping wholesale customers out.

OneCode costs $9.90 USD every 30 days after a 7-day free trial, billed by Shopify. Install it from the Shopify App Store.