> For the complete documentation index, see [llms.txt](https://help.memberply.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.memberply.com/create-a-dedicated-landing-page-selling-your-membership-programs/add-a-membership-to-the-cart-from-your-own-button.md).

# Add a membership to the cart from your own button

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.

## Get the join button code

1. From the Memberply dashboard, click **Integrations**.
2. Open **Custom storefront**.
3. Select **Connect an existing button**.
4. Select the membership tier you want the button to add to cart.
5. If that membership tier has both monthly and yearly purchase options, choose the purchase option you want.
6. 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

7. Enter the button text or CSS selector.
8. Copy the generated code.
9. 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.

## Other custom storefront options

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](/integrations/custom-storefront.md) for details.

## Important note

Before using the integration code, make sure you have created and enabled at least one membership tier.
