Plugin removes the "add to cart button" from all NOT FREE variable products

Posted by: Lisa Kienzle

27th September 2024, 12:56 pm

Lisa Kienzle

@Hansedelli

27 Sep 2024
12:56 pm

For a few months now, I've been trying to figure out why the "add to cart" button on my not free, variable products (i.e. with multiple options) disappears when you open the product page and only reappears when you select an option. For example this product: https://www.hansedelli.de/schnittmuster/geldboerse-little-ruby/

Today we finally found out that this error is caused by the ‘Free Downloads for Woocommerce Pro’ plugin. As soon as the plugin is deactivated, the cart button is always visible for the variable, not free products.

Do you have a solution?

  • Forum Moderator
    Peter Wilkinson

    @wpenhanced

    1 Oct 2024
    2:05 pm

    Hi Lisa,

    The standard WooCommerce behaviour is to disable the add to cart button although it is visible. Free Downloads does indeed hide the button until a selection is made as the product may have free downloads and paid together in the variations.

    If you'd like to override this behaviour you can use the below CSS

    .woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-disabled {
    display:block !important;
    }

    Thank you