Welcome to the Liquify Community

Updated last month

Hide/Show div on product page if the product is already in the cart

At a glance
Is there a formula to hide/show a div on the product page if the current product is already in the cart?

I'm guessing it would use li-js-if
j
t
3 comments
Hi @tycreated, we have already done that in the mini cart. I need to check if it already works outside of the cart. Let me search for a solution.
@jonas.halbstark Thanks!! Making it work outside of the cart would be super helpful (on product pages or inside product cards).
when it works it works everywhere πŸ™‚ we just need to get the information from the alpine store outside of it: https://alpinejs.dev/magics/store

but let me cook
Add a reply
Sign up and join the conversation on Discord