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.

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
- In Shopify admin, open each customer you have checked and add the tag
militaryorfirst-responder. - 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. - 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, thenfirst-responder. - Click Add Discount Type. Keep Discount Type on Product Discount and Value Type on Percentage, enter
10in Percentage, and keep Target as All Products. - Click Add Discount Type, set Discount Type to Shipping Discount, and keep Free Shipping.
- Click Save discount.
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-responderandFirst Responderare 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.

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.
Related setups
- The same steps with a
VIPtag, and how to give one group more than everyone else: VIP discount. - A different percent for each group on one code: student and teacher discount.
OneCode costs $9.90 USD every 30 days after a 7-day free trial, billed by Shopify. Install it from the Shopify App Store.
