Skip to main content

Show member vs non-member prices

Paste one snippet into your theme, then turn on member prices and choose how they look.

Member Price shows shoppers what members pay. The member price appears next to the regular price on your product pages and product cards, so shoppers see the saving before they join. It works with the Percentage Discount and Fixed Amount Discount perks of your membership plans, and you can show it as a line of text or as a banner.


Before you start

  • Add a Percentage Discount or Fixed Amount Discount perk to a membership plan and keep Auto-apply discount at checkout on. Other perk types, and perks that don't apply automatically, never show a member price.

  • Check that the Shopify discount behind the perk covers the products you want to show. A product the discount doesn't cover shows no member price.

  • Turn on the Appstle℠ Memberships app embed in your theme (Online Store → Themes → Edit theme → App embeds).


Add the member price snippet to your theme

The snippet marks the spot where the member price goes. Without it, nothing shows, even when the setting is on.

Copy this snippet:

<span class="appstle_member_price appstle_membership_stand_alone_selector" data-product-data="{{ product | json | escape }}" data-product-collection-data="{{ product.collections | json | escape }}" style="display:none;"></span>

  1. In Shopify admin, go to Online Store → Themes, click ⋯ next to your current theme, then click Edit code.

  2. Open the file that prints the product price. In most themes this is price.liquid in the Snippets folder.

  3. Find the element that wraps the price, and paste the snippet inside it. If your price file names the product something other than product (for example product_resource or card_product), use that name in both places.

  4. Click Save.

Most themes use this price file on product pages, collection pages and featured products, so one snippet covers them all. If your theme prints a price in another file, paste the snippet there too.


Turn on member prices

  1. In Appstle Memberships, go to More → Customizations → Widget Settings and open the Member Price tab.

  2. Select Show Member vs Non-member Price.

  3. Choose a style under Member Price Visibility Settings (see below).

  4. Under Other Labels, fill in Member Price Text, for example Member price: {{price}}. If you leave it empty, shoppers see the price with no words around it.

  5. Click Save.

To check it, open a product that your perk's discount covers. Shoppers who aren't members see the member price too, unless you limit it to members (see More options).


Choose how the member price looks

Pick one style under Member Price Visibility Settings. In these examples, the regular price is also crossed out with Strikeout Price Selector (see Widget selectors for other themes).

Member Price (Simple text + price)

Shows one line next to the regular price, for example Member price: $16.20 beside the $18.00 regular price.

Banner Style

Shows a highlighted block with the member price, a savings badge and a Join Now button.

Compact Banner Style

Shows the same information as a larger block with a bigger price.


Change the wording and placement

This table says what each field in Other Labels does.

Field

What it does

Member Price Text

The words shown with the member price. Type {{price}} where the amount goes and {{membershipName}} for the plan name, for example Member price: {{price}}. On the banner styles, the price shows on its own next to these words. You can use HTML.

Save Badge

The badge on the banner styles. Type {{{memberPriceDiscount}}} where the saved amount goes. The default is Save {{{memberPriceDiscount}}}.

Join Now Text

The label on the banner button. The default is Join Now.

Link To Membership Product Page

Where the Join Now button sends shoppers. Open your membership product page, copy the address from your browser's address bar and paste it here. If you leave it empty, the button just reloads the current page.

Member Price Placement

Before or After puts the member price just before or after the regular price. First Child or Last Child puts it inside the regular price, at its start or end. The default is Before.

If your store has more than one language and you see a language menu at the top of the Member pricing card, pick the language there first, then edit the text for it.


More options

  • Show Member Pricing Only to Logged-in Customers with Active Memberships hides member prices from shoppers who aren't logged in as members. It needs Show Member vs Non-member Price to be on.

  • Show All Member Prices shows a separate member price for each plan that covers the product, side by side. It works only with Member Price (Simple text + price), so select that style first: with a banner style selected, no member price shows. Include {{membershipName}} in Member Price Text so shoppers can tell the plans apart.


Things to know

  • The member price is shown on the page only. Members get the discount at checkout through the perk.

  • When several plans cover a product, shoppers who aren't members see the lowest member price, and a logged-in member sees the price from their own plan.

  • On product pages, the member price follows the variant the shopper picks.

  • On product cards, the member price is based on the product's first variant, even when it's sold out. If a product's variants have different prices, its card can show a member price higher than the regular price. To prevent this, move the lowest-priced variant to the top of the product's variant list in Shopify. If it's in stock, it also becomes the variant selected first on the product page.

  • The membership product itself doesn't show a member price.

  • If you change the discount in Shopify, such as its products or its amount, open the perk in your plan, enter the Shopify Discount ID again and save. Member prices use the discount as it was when you entered the ID.

  • Members see the member price too, and the banner styles show them the Join Now button as well.


Widget selectors for other themes

The app looks for your price using class names common in Shopify themes such as Dawn. Some themes, including Horizon, use other class names, and the member price doesn't show until you tell the app where the price is. Open Widget Selectors at the bottom of the Member Price tab.

Right-click your product price in your browser and choose Inspect to find its class name.

  1. In Discount Perk block selector, enter the CSS selector of the price itself. In Horizon, for example, enter .price.

  2. If the price sits in a container the app doesn't recognize, enter that container's selector in Discount perk block parent selector. The snippet must be inside that container.

  3. Click Save.

Leave Force Reload Widget Selector and Trigger Membership Perk Selector empty unless our support team asks you to fill them in. If you can't find the right selector for your price, contact our support team and they'll help you set it up.

Strikeout Price Selector crosses out the regular price. Enter the selector of the price you want crossed out. The app crosses out every matching price on every page, even on products without a member price and for shoppers who can't see one. Use it only when your perk's discount covers every product, and leave it empty when member prices are shown only to logged-in members.


Troubleshooting

Find what you see, then try the fix next to it.

What you see

What to do

Nothing shows on any product

Check that Show Member vs Non-member Price is on and saved, that the Appstle℠ Memberships app embed is on, and that the snippet is in your theme's price code.

Nothing shows on one product

Check that the discount behind the perk covers that product, and that it isn't the membership product itself.

It shows for you but not for a shopper

Check whether Show Member Pricing Only to Logged-in Customers with Active Memberships is on.

The snippet is in place but no member price shows

Your theme may use other class names for the price. Set Discount Perk block selector as described above (in Horizon, .price).

The perk is set up but no member price shows

Open the perk and check that Auto-apply discount at checkout is on, and that it's a Percentage Discount or Fixed Amount Discount.

The member price shows with no words

Fill in Member Price Text under Other Labels, for example Member price: {{price}}.

A product card shows a member price higher than the regular price

Cards use the product's first variant. In Shopify, move the product's lowest-priced variant to the top of its variant list.

Nothing shows after you turn on Show All Member Prices

Select Member Price (Simple text + price). The banner styles don't work with this option.

Regular prices are crossed out on products with no member price

Clear Strikeout Price Selector, or use it only when your perk's discount covers every product.


FAQs

Does the member price change what the shopper pays?

No. It only shows the price. The discount is applied at checkout through the perk, so a shopper has to be a member to get it.

Can I show member prices on collection pages?

Yes. If your theme uses the same price file on collection pages, the snippet already covers them. Otherwise, paste the snippet in the file that prints the price on product cards.

Can I change the banner colors?

Yes. Add CSS in More → Customizations → Widget CSS. The banner uses the class appstle-membership-banner and the compact banner appstle-membership-banner-v3. For example, .appstle-membership-banner { background: #1f3a2e; } changes the banner's background.

Did this answer your question?