If your Shopify store uses a slide cart drawer and you have enabled the Discounty cart widget app embed, but the savings are not appearing as expected, don't worry. We have a solution for you. By following the steps below, you can integrate a code snippet into your theme, allowing the savings to be displayed seamlessly in the cart widget. Let's get started:
If you would like assistance with this process, please contact our support team. We are available to guide you through the steps or perform the integration for you.
Step 1: Accessing your Shopify Theme Editor
Log in to your Shopify admin panel.
Navigate to Online Store and click on Themes.
Step 2: Editing the Theme Code
Locate the theme you want to edit and click on the "..." button.
Select Edit code from the drop-down menu. This will open the Shopify Theme Editor.
Step 3: Adding the Code Snippet
In the Shopify Theme Editor, find the Snippets folder in the left-hand side menu and click on it.
Look for the file named
cart-drawer.liquidand click on it to open the code editor.
Search for "subtotals" to find this section:
<!-- Start blocks -->
<!-- Subtotals -->
Within the subtotals section, insert the code snippet provided by Discounty. Make sure to place it just in the beginning of the section, below <!-- Subtotals --> text.
Step 4: Saving the Changes
After inserting the code snippet, click on the Save button located at the top right corner of the code editor.
The changes will be saved and applied to your theme.
Step 5: Verifying the Implementation
To confirm if the implementation was successful, visit your Shopify store and add a product to the cart.
Open the slide cart drawer, and you should now see the savings amount added by Discounty.