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?

Skip to content