I´m trying to attach a text behind the price that will only be visible if the product is available.
Found the code below in this forum ![]()
I pasted my code into: assets/section-main-product.css
so its only visible on the product page
if current_variant.inventory_quantity > 0 ? Maybe this way?
.price {
position: relative;
}
.price::after {
width: 100%;
height: 100%;
content: “Inkl. MwSt.”;
font-size: 10px;
top: 5px;
color: grey
}
Currently I have the problem, that the text is always visible, but if a product is sold out a badge will appear and is in front of my text.