How To Add Membership Button In Some Products?

How To Add Membership Button In Some Products?

The membership button can be shown only on some specific products by following the below steps –

Step 1. From Shopify Admin, go to the Online Store > Themes > Actions(Published Theme) > Edit Code(Published Theme).

membership pt 1

Step 2. Open file product-template.liquid under Sections.

membership pt 2

Step 3. Copy the below code and wrap it around the cart button element available in the file.

membership pt 3

Step 4. Now, open the product in Shopify backend in which you need the membership button and copy its handle.

membership pt 4

membership pt 5

 

Step 5. Paste this copied product handle in the product-template.liquid file as mentioned in step 3.

Step 6. Now, copy the membership plan embed code and paste in the product-template.liquid file as mentioned in step 3.

membership pt 6

 


    • Related Articles

    • How To Setup Restriction On Product Price And Add To Cart Button?

      Product Price and Add to Cart buttons can be restricted to access only by members. The work ethic of rules are- If you want to show the Product Price and/or Add to Cart button only to the customers who subscribe for membership and hide it from ...
    • How To Create Free Plan In Membership?

      The AiTrillion Membership + Subscription app gives you the option to create a FREE PLAN. It can be created for free membership registrations. Follow the below steps for guidance – Step 1. Log in to the Shopify store and go to Apps > AAA Membership ...
    • How To Setup Recurring Membership App?

      Watch the Quick Video below to set up the App Membership App Integration Steps Create Plan Add Short-codes in theme liquid files(Optional) Add Short-codes in theme liquid files only if using Restricted Access(Plan Rules) in App Add a button on the ...
    • How To Add The Newsletter Subscription Field In The Membership Form?

      AAA Membership + Subscription app gives you an option to add a newsletter subscription field in your membership subscription form through which users can subscribe for marketing email while subscribing for membership. Follow the below steps for ...
    • How To Place Orders On Membership Purchase Automatically?

      Automatic orders of a few products can be placed, once the customer subscribes to a specific membership. Orders can be recurring or one-time. Follow the below steps to enable this feature:- Step 1. Log in to the Shopify store admin area and go to ...