Introduction
Apps like GemPages, PageFly, Shogun Page Builder and Replo provide interfaces through which you can build pages but integrating 3rd party apps like Skio into them can get tough. This short tutorial will guide you through the integration of our plan picker to mentioned apps.
Prerequisites
- For page builders that have a Liquid component in their library, Skio's Liquid Plan Picker files should be in the live theme.
- Page builders that don't offer a Liquid component need to leverage Skio's Universal Plan Picker. Please ask our team to send it to you and provide documentation.
- For cases when the plan picker is needed outside the product form, Skio's Universal Plan Picker is required.
GemPages
- Open GemPages dashboard
- Select your page
- In the elements sidebar on the left, search for "Liquid":
- Drag and drop the Liquid component to the product form
- Right click on the added section and select "Edit code"
- In the template tab of the editor copy and paste the following:
{% render 'skio-plan-picker' %}
- Save, publish and refresh the page. Done!
PageFly
- Open PageFly dashboard
- Select your page
- On the leftmost sidebar of the editor, click on the "+" icon. Search for "Liquid"
- Drag and drop the element to the product form
- Click on "Open Code Editor" button on the right sidebar
- Copy and paste the following to the editor:
{% render 'skio-plan-picker' %}
- Save, publish (if needed) and refresh your page. Done!
Shogun Page Builder
This is a bit more complex as SPB doesn't store data in your theme and therefore doesn't have access to Liquid. This integration requires Skio's Universal Plan Picker (SUPP) to be imported to the page either globally (with a conditional check against the URL) or directly from the custom element itself via script tag with SUPP uploaded to the Files of the store.
- Open Shogun PB dashboard
- Click on "Advanced" on the top navigation bar (https://app.getshogun.com/advanced)
- Click on "New Custom Element" on the right
- In the Liquid editor, drop the SUPP along with other elements (if needed)
Example SUPP with an add to cart button:<skio-plan-picker productHandle="{{inputProductHandle}}" />
Note that in the example above, we used
<button onclick="document.querySelector('skio-plan-picker').addToCart(1)">Add to Cart</button>{{ inputProductHandle }}
. SPB's editor will understand that inputProductHandle is a dynamic variable and let you choose a data type for it. - Select the right data type for your input:
- Save the custom element and go to your page
- Search for your element in the right sidebar (as you named it earlier)
- Drag and drop the element where you need it
- Fill the input data on the right (it is the product handle in our case)
- Save, publish and refresh your page. Done!
Replo
- Open Replo dashboard and select your project
- Select your page
- On the left sidebar select "Components" and search for "Liquid" in the component library
- Drag and drop the component to a product box
- In the code editor, copy and paste the following:
{% render 'skio-plan-picker' %}
- Save, publish (if needed) and refresh your page. Done!
Ecomposer
- Open Ecomposer dashboard and access the page where you want to sell subscriptions
- In the "Elements" section where new components are added, drag in the "Selling Plans" component as shown below!
For developers
Most page builders save their data as Liquid code chunks in the live theme. As previewing and debugging in the live theme is not the best idea, a workaround is using a comment placeholder in the places where the plan picker is required. Then, after saving and publishing, you can find and replace it with the actual plan picker in a duplicate theme.
Was this article helpful?
Articles in this section
- How to set up Prepaid Gifting
- Setting up the Skio Plan Picker (Customizer options available)
- Customizing the Skio Plan Picker via the Shopify Customizer tool
- Moving the Skio Plan Picker to a new theme
- Self-serve install + setup
- Going Live with Skio
- Guide for 3rd party for Static Box API
- Skio Universal Plan Picker V2: Lit.JS Component
- Skio Universal Plan Picker V1: Liquid, JS, CSS support
- Theme work scope
Add comment
Please sign in to leave a comment.