Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

"Add to cart" button is shown for soldout products (only if variation)

Home / Forums / Virtue Theme / "Add to cart" button is shown for soldout products (only if variation)

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
July 26, 2016 at 3:51 pm

I just upgraded all plugins and theme. There seems to be a regression that for (and only) variable products the “Add to cart” button is still shown even when a product is soldout. I think it is a Virtue bug and not WooCommerce (but let me know if I’m mistaken).

For now I’ve added this workaround, but would be nice if it could be fixed in an upcoming version.

// Workaround: Otherwise the "Add to cart" button is shown for soldout products
.outofstock .variations_button {
display: none;
}

Here’s an example URL (remove the above css rule to see the button):

  • The forum ‘Virtue Theme’ is closed to new topics and replies.