A member discount perk gives your members a discount that you create in Shopify. This article shows how to set up that discount so the app can apply it, and where to find the discount ID that the perk asks for. It covers the five perk types that use a Shopify discount: percentage, fixed amount, Buy X Get Y, free shipping and emailed discount codes.
Before you start
Create the membership plan first. When you save it, the app creates a customer segment named Appstle - followed by the plan’s name, for example Appstle - Coffee Lovers Club. See Create a membership plan.
Turn on the Appstle℠ Memberships app embed in your theme (Online Store → Themes → Edit theme → App embeds). The app adds the discount from there.
Members get the discount only when they are signed in to their customer account.
Create the discount in Shopify
In your Shopify admin, go to Discounts and click Create discount. Choose the discount type that matches the perk you plan to add. Each perk type links to its full steps.
Perk type in Appstle | Discount type in Shopify |
Amount off products, with a percentage value | |
Amount off products, with a fixed amount | |
Buy X get Y | |
Free shipping | |
Amount off products, Buy X get Y or Free shipping |
Choose the Discount code method
Under Method, choose Discount code. The app can’t use an automatic discount. Then enter the code that members will see at checkout, for example MEMBER15.
Set the value and the purchase type
Set the discount value and what it applies to. If the form has a Purchase type setting, choose Both, so the discount works for one-time purchases and subscriptions.
Limit the discount to your plan’s members
Under Eligibility, choose Customer segments and select your plan’s segment, Appstle - followed by the plan’s name. Without this, anyone who knows the code can use it.
Check usage limits and combinations, then save
Under Maximum discount uses, leave both boxes unticked if members should get the discount on every order. With Limit to one use per customer ticked, each member can use it only once.
Under Combinations, tick the kinds of discount that members can use together with this code. If the plan has more than one discount perk, include the kinds its other perks give, for example shipping discounts when the plan also has a free shipping perk. Then click Save.
Find the discount ID
In your Shopify admin, go to Discounts and click your discount.
Look at the address in your browser. The discount ID is the number at the end, for example 1638516785456 in admin.shopify.com/store/your-store/discounts/1638516785456.
Copy only that number.
Add the discount to a perk
These steps are the same for percentage, fixed amount, Buy X Get Y and free shipping perks. An Email Discount Code To Members perk has other settings, so follow its article from the table above.
In the app, go to Plans & Perks and click Membership Perks on your plan.
Click Create New Membership Perk (or Add New Membership Perk if the plan already has perks), then Member Discount.
Under Select Discount Type, choose the perk type.
Paste the number into Shopify Discount ID.
Edit Member Benefit Message (HTML supported). It fills in from the discount, and members see it in a banner on your store, so write it in your own words, for example “Members save 15% on single-origin coffees”.
Keep Auto-apply discount at checkout ticked, so the app adds the code to the member’s cart. If you untick it, members must type the code at checkout.
Click Done, then Save.
Things to know
If a plan has more than one discount perk with Auto-apply discount at checkout ticked, for example a percentage discount and free shipping, tick Apply all eligible discount perks at checkout under Discount Perks in More → General Settings → Shop Settings. The app then adds all of those codes to the member’s cart, and Shopify applies the ones that each discount’s Combinations settings allow together.
If Apply all eligible discount perks at checkout is unticked, members may not get all of these codes, and you can’t choose which ones they get. New stores have this box ticked, and stores that installed the app earlier have it unticked. While it stays unticked, keep Auto-apply discount at checkout ticked on only one discount perk for each plan.
A plan can have only one percentage or fixed amount discount perk. Once it has one, both types show (Already added to another perk) when you add another perk. To give members more discounts, see Membership Discounts Using Appstle Bundles.
If you change the discount in Shopify, click Edit on the perk, delete the number in Shopify Discount ID and paste it in again, then click Done and Save. Until you do, the app keeps using the old details, such as the old code name. Member Benefit Message (HTML supported) keeps its text, so update it too if it mentions the old value.
If Allow membership perks during trial is off, members on a trial don’t get the discount applied automatically. You find it under Member Settings in More → General Settings → Shop Settings. See Shop Settings: change how memberships behave across your store.
FAQs
Why does the perk say “Invalid discount code. Please check the ID and try again.”?
The number in Shopify Discount ID isn’t a discount code that the app can use. Check these:
It’s the number from the end of your discount’s address in Shopify.
The discount uses the Discount code method. Automatic discounts give this error, so create a new discount with the Discount code method and use its ID.
The discount is one of the Shopify types in the table above. A discount code that another app created gives this error too.
Why does the perk say “Failed to validate discount code. Please try again.”?
Most often, the field holds more than the number, for example the whole address or a space. Enter only the digits. If the message stays, reload the page and try again.
Why don’t my members get the discount?
Check these, in order:
The member is signed in to their customer account.
The Appstle℠ Memberships app embed is on in your theme.
Auto-apply discount at checkout is ticked on the perk.
If the plan has several discount perks with Auto-apply discount at checkout ticked, Apply all eligible discount perks at checkout is ticked in Shop Settings, and each discount’s Combinations settings in Shopify allow the others. If you keep that box unticked, only one of the plan’s discount perks has Auto-apply discount at checkout ticked.
The discount is active in Shopify. It hasn’t ended and hasn’t reached a usage limit.
The member is in the plan’s segment, the one you chose under Eligibility.
The cart holds items the discount applies to, and meets any minimum purchase you set.
If the member buys a subscription, the discount’s Purchase type is Subscription or Both, not One-time purchase.
If the member is on a trial, Allow membership perks during trial is on.
If you changed the discount in Shopify, you deleted the ID in the perk, pasted it in again and saved.




