Shopify Plugin Setup

The Shopify plugin is currently in beta, to ensure we handhold customers, as we iron out our documentation & setup process.

Here is a summary of steps involved:

  1. Install Shopify plugin.
  2. Copy code snippet in Shopify themes.
  3. Setup ChargeBee account & create products in ChargeBee.
  4. Copy & paste the Plan URL in the plugin to redirect to checkout page.
  5. Complete the other configuration steps in ChargeBee (including hosted checkout page, invoice logo, emails & payment gateway). 
  6. Go LIVE.

Shopify App Installation Steps:

In the next step, the list of products available in Shopify are listed with empty text boxes to map ChargeBee plan URL. 

Insert the following code snippet into your Themes, Product code.

Click on "Template Editor" to edit the code.

Look for Product.liquid or the code snippet under which the following code exists ("Add to cart"). Search for "Add to cart" in the code and add the following code snippet, as in the image:


              <!--ChargeBee code snippet - starts-->
              {% assign cb = product.metafields.chargebee %}
              {% unless cb == empty %}
              <a href="{{cb.cb_url}}" class="btn">Subscribe</a>	
              {% endunless %}
              <!--ChargeBee code snippet - ends-->


Here is a quick hack to verify if the integration setup is correct:


Copy the following URL and paste it in the text box, against one of the products in plugin. 


Save and refresh your website. You should be able to see the Subscribe button as below. Clicking on that should redirect you to a secure URL page that can be customized to look exactly like your website. 

Now let us get started with setting up the ChargeBee Account:

If you do not have a ChargeBee account, click on the below mentioned URL to signup for a new account.

Complete the email verification and "claim your account" to complete the signup process. You will be redirected to a TEST site to complete the configuration.

Email ChargeBee customer support for completion of setup, with the name of your Shopify & ChargeBee site and we will assist you with the process.


1 person has this question

Is there any updates regarding Shopify integration?

How can I test this on my Shopify store?

Hi Lineker, 

We have decided to discontinue Shopify's Chargebee plug-in. This is because the existing plug-in is not built to support various e-commerce features and was not solving most of the users' needs. We have been taking feedback from existing users, and have decided to revamp the integration completely. 

We sincerely apologize for the inconvenience. Our engineering team will look to develop a more robust integration with Shopify. We will surely notify you when we re-introduce the plug-in.

1 person likes this

Is there any release date of this plugin for Shopify?

Hi there,

Glad to know your interest in Shopify Integration! 

We have plans to revamp our Shopify integration in the future and I'm tagging this discussion internally to step up the priority for the feature request. While we don't have a firm ETA on this, we'll let you know when this is released.

2 people like this

Hi there - in the meantime, how would you recommend integrating a shopify site with chargebee?

1 person likes this

Hello John, 

You can implement the Plan URL Integration - - method to redirect subscription customers to Chargebee's checkout pages. However, the orders will not be synced back to Shopify. The subscriptions can be viewed/managed on Chargebee separately. 

1 person likes this

Please use the new investment to build a Shopify integration / app.

Hi Tjeerd

Thanks for the suggestion! Glad to let you know that we're already working on building it :)

Hi Meena, this is great news. Can you share details about when we can expect this?

Hi Tjeerd

The ETA hasn't been finalized yet, sorry. I've tracked this request and added your email address internally. We'll let you know once it is released.

Great Meena, thanks!

Add us to the list of frustrated Shopify customers looking for an integrated solution.

Hi Jed

I'm upvoting the request once again. We'll let you know once it is released. Sorry for the inconvenience

Is there an ETA now?

Login or Signup to post a comment