A Buy X Get Y Discount perk, often called BOGO, gives your members a free or discounted item when they buy a set number of items or spend a set amount, for example buy 2 coffees and get 1 free. You create the discount in Shopify, then add it to a membership plan as a perk. When members shop in your online store while signed in, the app adds the code to their cart, so they don’t have to type it.
Before you start
Create the Buy X get Y discount in Shopify first. Choose Buy X get Y, use the Discount code method, set what customers buy under Customer buys and what they get under Customer gets, and limit it to your plan’s segment. Under Purchase type, choose Both instead of One-time purchase, so members also get the offer when they buy a subscription. See Create the Shopify discount for a member discount perk.
Create the membership plan. See Create a membership plan.
Turn on the Appstle℠ Memberships app embed in your theme (Online Store → Themes → Edit theme → App embeds). Members get the offer only when they are signed in to their customer account.
Add a Buy X Get Y Discount perk
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 Buy X Get Y Discount.
Paste the discount ID from Shopify into Shopify Discount ID. See Create the Shopify discount for a member discount perk to find it.
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 “Buy 2 single-origin coffees, get 1 free”.
Keep Auto-apply discount at checkout checked, so the app adds the code to the member’s cart. If you uncheck it, members must type the code at checkout.
Click Done, then Save.
What members see
When a signed-in member opens your store, the app adds the discount code to their cart, so members don’t type a code. Members add the free or discounted item to the cart themselves, because Shopify doesn’t add it for them. For buy 2 get 1 free, they add 3 coffees, and Shopify makes one of them free.
A banner with your member benefit message appears at the bottom of the page, and members can close it for the rest of their visit. To turn the banner off, uncheck Show banner to members under Storefront Banner in More → General Settings → Shop Settings. Members still get the offer. See Shop Settings: change how memberships behave across your store.
Things to know
Shopify discounts the items members get only when they are in the cart as a one-time purchase, not as a subscription. Purchase type under Customer buys only decides whether one-time purchases, subscriptions or both count toward the items members must buy.
Shopify gives the offer as many times as the cart allows, for example 2 free coffees in a cart of 6 for buy 2 get 1 free. To limit it, check Set a maximum number of uses per order in the Shopify discount.
A plan can have only one percentage or fixed amount discount perk, but Buy X Get Y perks don’t count toward that limit. For both to apply in one order, each Shopify discount must allow the other under Combinations. Shopify counts a Buy X get Y discount as a product discount, so the other one must allow product discounts.
If a plan has more than one discount perk with Auto-apply discount at checkout checked, also check 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. New stores have it checked.
If Apply all eligible discount perks at checkout is unchecked, members may not get all of these codes, and you can’t choose which ones they get. Keep Auto-apply discount at checkout checked on only one discount perk for each plan. Stores that installed the app earlier have it unchecked.
Product pages don’t show a member price for this perk. Member prices work for percentage and fixed amount perks only. See Show member vs non-member prices.
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 unchecked, the app doesn’t add the code for members on a trial. 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” or “Failed to validate discount code”?
Most often, Shopify Discount ID holds more than the number, or the discount uses the Automatic discount method. Enter only the digits from the end of the discount’s address in Shopify, and use a discount with the Discount code method. For other causes, see the FAQs in Create the Shopify discount for a member discount perk.
Why don’t my members get the offer?
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 checked on the perk.
If the plan has several discount perks with Auto-apply discount at checkout checked, Apply all eligible discount perks at checkout is checked in Shop Settings, and each discount’s Combinations settings in Shopify allow the others. If you keep that box unchecked, only one of the plan’s discount perks has Auto-apply discount at checkout checked.
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 member still has their perks. A failed renewal payment, a pause or a cancellation can remove them. See “When members lose perks” in Shop Settings: change how memberships behave across your store.
The cart holds the items under Customer buys plus the items under Customer gets, for example 3 coffees for buy 2 get 1 free. Members add the items they get themselves, as a one-time purchase.
If the member buys a subscription, the discount’s Purchase type under Customer buys is Subscription or Both, not One-time purchase.
If the member is on a trial, Allow membership perks during trial is checked.
If you changed the discount in Shopify, you deleted the ID in the perk, pasted it in again and saved.
Does a new member get the offer on the order where they join?
No. A customer joins your plan’s segment only after the order where they buy the membership. The offer applies from their next order, when they shop signed in.
Does a member keep the offer after they pause or cancel?
By default, yes, until the end of the period they paid for. Then the app removes their member tags, and the offer stops. Some settings end it at once. See “When members lose perks” in Shop Settings: change how memberships behave across your store.

