Hi,
my intention was to create a cart icon with an indicator that there are items added to it.
![]()
I have a div element that contains another div and the Cart modal. The inner div has an Icon of the dot, and it is absolutely positioned with the z-index of 3. This puts the icon to the front of the Div. I wanted to replace it later with the cart item count.

Having this set up, I wanted to create a condition for the div to show the icon if the cart is not empty.
Is there such a condition? I cannot find it.
Thanks!
To support conditions for the cart being empty we’d need to introduce a new layer and new condition type that can operate with javascript instead of server side only. It’s because the cart size can change in realtime on the page and we don’t have a way to account for that. It’s something we’re still considering later on.