Engines - Discount Box Installation
- If you have simple and default Shopify theme then you can do Auto Installation of code from Settings >> Installation >> Select the theme >> Click on Auto Install.
- If you have a customized theme then follow the below steps to install the code into your store.
Open the "cart-template.liquid" file (Sections => cart-template.liquid).
Please follow this steps for "cart.liquid" template, If you see any section included there, then open that particular section.
Step A: Find the "{% for item in cart.items %}" code. If there is no code like this in your theme, Please try to find "cart.items". Paste below class to the first line of the cart item loop. Paste below attributes too.
class: "th_do_cart_line"
Attribute: data-idth_do="{{ item.id }}" data-indexth_do="{{ forloop.index }}"
Step B: Find the "{% if property_size > 0 %}" code. If there is no code like this in your theme, Please try to find "item.properties".
Paste this code above "{% if property_size > 0 %}".
<span class="th_do_success_text"></span>
<span class="th_do_quantity"></span>
Step C:- Paste this class to display single variant price. To find this line you have to find item.price
class="th_do_item_price"
If there is already a class then just add a class name like below.
class="xyz th_do_item_price"
Step D:- Paste this class to display quantity based price. To find this line you have to find item.line_price
class="th_do_item_line_price"
If there is already a class then just add a class name like below.
class="xyz th_do_item_line_price"
Step E:- Paste this class to display cart total price. To find this line you have to find item.total_price
class="th_do_cart_total_price"
If there is already a class then just add a class name like below.
class="xyz th_do_cart_total_price"
If you face any issue then feel free to contact to our app support team at support@webcontrive.com, they will integrate the app perfectly into your store and are always happy to help you.