Home › Forums › WoodMart support forum › Problems with add to cart button if product out of stock › Reply To: Problems with add to cart button if product out of stock
metuza
Also the css you refer to is completely wrong as it will show the basket icon on all products regardless of whether the single product has status outofstock or not.
A more correct css to use will be this one:
.single-product .outofstock .products .product-type-simple.instock .wd-add-btn-replace .add-to-cart-loop::before,
.single-product .outofstock .products .product-type-variable.instock .wd-add-btn-replace .add-to-cart-loop::before {
content: "\f123";
}
Then the correct icon will appear in the product-grid if the single product has status outofstock.
The css itself explain the issue with woodmart very well, you should easily see the problem caused by woodmart when a single product has status outofstock.
As mentioned many times, the issue appear ONLY when single product has status outofstock. When it has status instock then everything works perfectly fine.
Rune