To give students and teachers a discount on Shopify, tag them student or teacher once you have checked their ID, then create one discount code in OneCode: Stackable Discounts with the Global Condition Customer Tag Is one of student, teacher. Inside that one code, students can get 15% off, teachers 10% off, and both get free shipping on orders of $50 or more. Only logged-in customers with one of the tags can use it.
Example with the code SCHOOL and $8 shipping:
- A logged-in student buys a $40 backpack and a $20 notebook set. With 15% off, they are $34 and $17, so the items come to $51. The cart was $60 before the discount, which is over $50, so shipping is free. They pay $51.
- A logged-in teacher with the same cart gets 10% off: $36 and $18, $54 for the items, and free shipping. They pay $54.
- A student who buys only the backpack pays $34. The cart is under $50, so they pay $8 shipping, $42 in total.
- A customer without either tag gets nothing from SCHOOL, and pays $60 plus $8 shipping.

Who checks eligibility
You do. Shopify and OneCode don’t verify anyone. You decide who qualifies, check their student or staff ID, and add the tag to their customer account in Shopify admin, by hand or with 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
studentorteacher. - In OneCode, click Create discount. Keep Discount code and enter
SCHOOL. - 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
student, thenteacher. - Click Add Discount Type. Keep Discount Type on Product Discount and Value Type on Percentage, enter
15in Percentage, and keep Target as All Products. Under Per-Discount Conditions, click Add Condition, set Field to Customer Tag, keep Is one of, and pickstudent. - Click Add Discount Type again. Enter
10in Percentage and keep Target as All Products. Under Per-Discount Conditions, add Customer Tag Is one ofteacher. - Click Add Discount Type, set Discount Type to Shipping Discount, and keep Free Shipping. Under Per-Discount Conditions, add Cart Subtotal Greater than or equal to
50. - Click Save discount.
The Global Condition keeps everyone else out of the whole code, free shipping included. The Per-Discount Conditions decide which percent each group gets. A Shopify discount code holds one kind of discount, so with Shopify’s own codes the two percents and the free shipping would be three separate codes.
Things to check before you launch
- A customer with both tags gets 15%, not 25%. When two product discounts in one code cover the same item, the item gets the one that saves more.
- The $50 is checked before this code’s discounts. Cart Subtotal uses normal prices, so a student with a $52 cart gets free shipping even though the items come to $44.20 after 15% off.
- Customers must be logged in. Tags are only known for logged-in customers, and guests have no tags. Tell customers to sign in before checkout when you tag them. Customer Segment is only a Global Condition, so it can’t give students and teachers different percents inside one code. If many of them check out as guests, make a separate discount for each group with a Customer Segment Global Condition, as described in the VIP discount guide.
- Type tags exactly as they are spelled on your customers.
studentandStudentare different tags. - A shared code is safe. If SCHOOL ends up on a coupon site, it still only works for logged-in customers with one of the tags. To skip the code altogether, choose Automatic discount in step 2 and give it a Title.
A one-off offer instead of a standing perk
For a back-to-school offer that each student or teacher can use once, keep Discount code and, in Maximum discount uses, tick Limit to one use per customer. You can also cap the total, for example 500 orders. Usage limits only work on discount codes, not automatic discounts. See one use per customer.

Related setups
- The same tag setup with one percent for two groups: military and first responder discount.
- To keep a group such as wholesale buyers out of a discount instead, use Is not one of: retail, not wholesale.
OneCode costs $9.90 USD every 30 days after a 7-day free trial, billed by Shopify. Install it from the Shopify App Store.
