ISO debug: Mini Cart Countedown and Lock Screen Cookie

ISO debug: Mini Cart Countedown and Lock Screen Cookie

AMAPAH
Tourist
6 0 1

ISO debug help!

Been working on my own for many hours/days and can't seem to get these over the line. 

1. Empty Mini Cart - Hide Countdown/Free Ship

Bad: When cart is empty it says the customer gets free shipping
Want to: Hide that statement if cart is empty, no items

2. Lock Screen - Store Cookie and bypass

Bad; Every time user hits "Home" they have to go back to the lockscreen
Want to: Make it so the user makes a selection once and then does not see the lockscreen  until they clear their cookies

Here is the preview link from my theme i have not published yet. 
https://ziwh118n290gsr2x-35473293371.shopifypreview.com


Than you for any help in advance!

 

 

 

Screenshot 2024-08-09 at 4.22.45 PM.pngScreenshot 2024-08-09 at 4.23.57 PM.pngScreenshot 2024-08-09 at 4.24.32 PM.pngScreenshot 2024-08-09 at 4.24.42 PM.pngScreenshot 2024-08-09 at 4.25.11 PM.pngScreenshot 2024-08-09 at 4.25.17 PM.pngScreenshot 2024-08-09 at 4.25.23 PM.png

Replies 2 (2)
AMAPAH
Tourist
6 0 1

Thank you so much for your reply. 

For #1. I just added this to the snippet called cart-mini.liquid 

Is this correct?  

It does not seem to work (still shows free shipping on empty mini cart) 

Do I need to do anything anywhere else to make it work? 
There is also a template/cart-mini

Thank you again!


 

Screenshot 2024-08-09 at 11.00.31 PM.png

 

Screenshot 2024-08-09 at 11.04.30 PM.pngScreenshot 2024-08-09 at 11.05.32 PM.png

 

 

Trying the #2 fix now!

AMAPAH
Tourist
6 0 1

For #2

I added this js in assets. 
And then referenced it in the theme. 

like this: 

Screenshot 2024-08-09 at 11.25.06 PM.png

Screenshot 2024-08-09 at 11.25.13 PM.png


Is also still not working to bypass. 

Any ideas? 

The lockscreen file is a section. Should I be another format?