Variable Product Button Greyed out
-
Hi,
I used the following code in the past to enable the add to cart button to be seen even when a variable was not selected.
add_action( ‘woocommerce_before_add_to_cart_button’, function(){
// start output buffering
ob_start();
} );add_action( ‘woocommerce_before_single_variation’, function(){
// end output buffering
ob_end_clean();
// output custom div
echo ‘<div class=”single_variation_wrap_custom”>’;
} );Since the update – the button is greyed out and inactive until they select an option, conversions have dropped significantly like last time.
We want the button to be active and give an error if the customer does not select an option such as colour as it used to before the update.
Can @mikejolly advise how to get it to behave like I had it before the update?
- The topic ‘Variable Product Button Greyed out’ is closed to new replies.