Installation Guide – Shopify

Step 1
Login into admin panel of store.

arrow

Step 2
Go to online stores & click on edit code.

arrow

Step 3
Find the product template liquid file and put the below code where you want to display the product level tooltip.

{% comment %}PLEASE DO NOT REMOVE BELOW CODE. {% endcomment %}
{% assign DivideBuy = shop.metafields.DivideBuy %}
{% assign DivideBuyEnableFlagKey = 'DivideBuyEnableFlag' %}
{% assign DivideBuyFlag = DivideBuy[DivideBuyEnableFlagKey] %}
{% if DivideBuyFlag != '0' %}
{% include 'dividebuyproduct' with products[0] %}
{% endif %}

arrow

Step 4
Find cart.liquid file and put the below code where you want to display the dividebuy button.

{% comment %}PLEASE DO NOT REMOVE BELOW CODE. {% endcomment %}
{% assign DivideBuy = shop.metafields.DivideBuy %}
{% assign DivideBuyEnableFlagKey = 'DivideBuyEnableFlag' %}
{% assign DivideBuyFlag = DivideBuy[DivideBuyEnableFlagKey] %}
{% if DivideBuyFlag != '0' %}
{% include 'dividebuycart' %}
{% endif %}

arrow

Step 5
Open dividebuy product.liquid file and find the variable price_a and replace the id or class with your product price’s class or id.

You can check find below code in same file
var price_a = jQuery('#ProductPrice-product-template').html().replace(' {{shop.money_format | slice: 0 }} ','');

Modify the code as explained below.
var price_a = jQuery('#Your product price’s class or id ').html().replace(' {{shop.money_format | slice: 0 }} ','');

Was this page helpful?

Our use of cookies

We use necessary cookies to make our site work. We'd also like to set optional analytics cookies to help us improve it. We won't set optional cookies unless you enable them. Using this site will set a cookie on your device to remember your preferences.

For more detailed information about the cookies we use, see our Cookies page


Necessary cookies

Necessary cookies enable core functionality such as security, network management, and accessibility. You may disable these by changing your browser settings, but this may affect how the website functions.


Analytics cookies

We'd like to set Google Analytics cookies to help us to improve our website by collecting and reporting information on how you use it. The cookies collect information in a way that does not directly identify anyone. For more information on how these cookies work, please see our Cookies page .


Skip to content