Add a membership to the cart from your own button
PreviousCustomizing the dedicated landing page for your membership programsNextLegacy customer accounts
Last updated
If you already have your own custom landing page or use a third-party page builder, you can connect your Join now or Add to cart button to Memberply. When a customer clicks the button, the membership tier you select will be added to their cart.
From the Memberply dashboard, click Integrations.
Open Custom storefront.
Select Connect an existing button.
Select the membership tier you want the button to add to cart.
If that membership tier has both monthly and yearly purchase options, choose the purchase option you want.
Choose how Memberply should find your button:
Button text if you want Memberply to find a button by its exact text, such as Join now
CSS selector if you want Memberply to target a specific button on the page
Enter the button text or CSS selector.
Copy the generated code.
Paste the script somewhere on the same page as your button.
If you are already editing a Memberply landing page, click Get Join Button Code on the Landing Page page to open the same button-code workflow without leaving the page.
When a matching button is clicked, the selected membership tier will be added to the cart and the customer will be taken to their cart.
Memberply can also provide a membership cart line for product builders, bundles and other custom cart experiences, or add a membership from your own JavaScript. See Custom storefront integration for details.
Before using the integration code, make sure you have created and enabled at least one membership tier.
Last updated