Hi everyone.
I’m not a developer, I don’t have a massive understanding of coding, so please be patient with me ![]()
I’m trying to customise something in my shop (dawn theme).
I am creating some limited time listings with a countdown timer in the product page.
When the timer hits 0, the add to cart button in the product page disappears, and the item can’t be bought anymore.
I have created a metafield and linked it to the product, so I can set the end time of the listing.
The problem is that the product can still be bought if it’s been added to the cart before the end of the listing, as it stays there up to 10 days.
I tried to play with the code in order to automatically delete the item in the cart when the listing has ended, but with no success. I’ve spent the last 2 days trying, and I’ve run out of ideas on how to do this.
Has anyone got any clue how I could achieve this?
Thank you,
Andrea