Issue with Sticky Add to Cart Code on Dawn

Issue with Sticky Add to Cart Code on Dawn

AbbeyJai
Shopify Partner
10 0 1

Hello Everyone, 

 

I am trying to add sticky add to cart code to my dawn theme. I used this tutorial: Add Sticky Add to Cart button to Dawn theme v14 - Shopify Community

 

It is returning an Error which you can see in my screen shot attached.

 

Line 207 in Sections/ Sticky-atc is: {% render 'icon-minus' %}  It is telling me that snippets/icon-minus.liquid doesn't exist

 

Line 212 is: {% render 'icon-plus' %}. Which is also saying does not exist. 

 

I am a newby. What do I do to fix this please?saffelles.png

Replies 3 (3)

DitalTek
Shopify Partner
842 100 119

Hi,

The issue because those icons file not exist in snippets folder, to solved you need go to snippets folder and then created twice files call icon-minus.liquid and icon-plus.liquid because those files contain svg file icon so you need download svg from default theme to paste to those files.

 

- You can please Like and Accepted Solution if my suggestion helpful.
- And you want to hire developer Theme or App Shopify => Feel free to send me a DM or contact to us via Email | WhatApp
AbbeyJai
Shopify Partner
10 0 1

Thank you, 

 

I tried doing this a few minutes ago. The plus and minus came out huge and weren't functional. I have removed the quantity selector for now. I will sleep on it and tackle it later. 

 

Is there an advantage to using code over an app?

DitalTek
Shopify Partner
842 100 119

Hi,

> Is there an advantage to using code over an app?

The plus/minus quantity is basically function, it can be implement by javascript to handle event from user, 

About handle by code that make speed site better than use app and it can easy to customize and maintain.

- You can please Like and Accepted Solution if my suggestion helpful.
- And you want to hire developer Theme or App Shopify => Feel free to send me a DM or contact to us via Email | WhatApp