Cart timer / countdown (Dawn theme)

Cart timer / countdown (Dawn theme)

Money_Cooker
Shopify Partner
3 0 0

Hello,

 

I'd like to create a timer at the top of my cart drawer when a customer adds an item to the cart (when the cart becomes non-empty). I'm using Dawn theme.

 

This timer would run when the cart becomes non-empty; it would reset if the cart empties. And updates to the basket would have no impact on the timer, even visually.

 

Capture d’écran 2024-08-15 à 21.32.59.png

 

I already have the HTML / CSS structure but I'm missing the javascript. I've tried using Chat GPT but to no avail. This time, I can't do it. For example, when the shopping cart updates (adding a new product or changing the quantities of a product), the timer stops. A lot of little problems that I can't solve.

 

I know there are a lot of applications for this but I'm trying to create my own theme and I'd like to integrate this functionality without having to use an application.

 

Does anyone have a solution or a piece of code to share with me, please? 🥲

 

Thank you in advance for your help.

Replies 4 (4)

PaulNewton
Shopify Partner
6722 610 1433

@Money_Cooker 👋 what's the point of this FOMO,

what happens when the timer runs what are you gonna do? lock the customer out from from the store.

 

Before adding extra doodads and noise to a store make sure there's some sort of actual data to back up such decisions and your not just mindlessly copying some other site or listicle that mentions it but provides no real proof nor guarantee of outcomes.

 

but I'm trying to create my own theme and I'd like to integrate this functionality


https://shopify.dev/themes/ 

 


without having to use an application.

Apps make money and save time, especially for features that don't yet have any data to justify spending time making them from scratch.

Get a free app, ab-test conversion, validate assumptions , then make decision backed by hard data and revenue-generation.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


Money_Cooker
Shopify Partner
3 0 0

@PaulNewton wrote:

@Money_Cooker 👋 what's the point of this FOMO,

what happens when the timer runs what are you gonna do? lock the customer out from from the store.


I don't think I've asked anyone's opinion about the feature I'm trying to add to my theme. I came to this site with my question in order to get an answer and a solution to my problem.

 


@PaulNewton wrote:

Before adding extra doodads and noise to a store make sure there's some sort of actual data to back up such decisions and your not just mindlessly copying some other site or listicle that mentions it but provides no real proof nor guarantee of outcomes.

Please avoid making assumptions about people you don't know. If I ask my question, it's because the feature I'm trying to add is important to my theme.

 


@PaulNewton wrote:
https://shopify.dev/themes/ 

Thanks for the great link everyone knows about. How could I have done without you? 🙏 If I wrote this topic, it's because I searched everywhere on Google, on Shopify Dev, on Shopify Community (and other) and didn't find the solution.

 


@PaulNewton wrote:
Apps make money and save time, especially for features that don't yet have any data to justify spending time making them from scratch.
Get a free app, ab-test conversion, validate assumptions , then make decision backed by hard data and revenue-generation.

I didn't come here for someone I don't know to give me moral lessons that should be kept to oneself.

 

As I wrote at the outset, I'm not looking for an application to install on my store. If that had been one of my solutions, I'd never have written this post.

 


@PaulNewton wrote:

Chatgpt and other LLM's are probabilistic liars that con you out of your time;  if you don't know the language some thing randomly spits out you can't tell how flawed and filled with typos it is.

LLM's can help bootstrap things, especially boilerplate, but it comes with a separate burden of validating what it generates randomly.


And just so you know, I've been using Copilot and Chat GPT for a long time, and these AIs have helped me learn and develop a lot.

 

Please don't reply to my topic again if it's not to provide a solution 😉

PaulNewton
Shopify Partner
6722 610 1433

 


I don't think I've asked anyone's opinion about the feature I'm trying to add to my theme. I came to this site with my question in order to get an answer and a solution to my problem.


Try facts , Bringing Dark Patterns to Light by the FTC

https://www.ftc.gov/system/files/ftc_gov/pdf/P214800%20Dark%20Patterns%20Report%209.14.2022%20-%20FI... 

 

Part of providing real solutions for merchants is addressing fundamental problems with proven approaches which includes addressing problems in advance with candor, not sentimental wish fulfillment that ignores the problems.

 

 

 

 

 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


PaulNewton
Shopify Partner
6722 610 1433

 

tried using Chat GPT but

Chatgpt and other LLM's are probabilistic liars that con you out of your time;  if you don't know the language some thing randomly spits out you can't tell how flawed and filled with typos it is.

LLM's can help bootstrap things, especially boilerplate, but it comes with a separate burden of validating what it generates randomly.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org