WooCommerce 3.3.x – disabled buttons fix – cant add gift to cart
-
How to add code / giftable fast fix for disabled buttons:
1. Copy/Paste code to footer.php<script> paste code here </script>
2. Use a plugin “Custom CSS & JS” to add a code – without <script> just a code.
Gist full code can be found here
or copy/paste this:
jQuery( document.body ).on( 'updated_cart_totals', function(){ if ( jQuery( '#dgfw-gifts-carousel' ).length ) { jQuery( '.dgfw-gift' ).each(function( ) { jQuery( '.dgfw-add-gift-button, .dgfw-select-gift-button' ).prop( 'disabled', false); }); } }); jQuery( window ).on( "load", function() { if ( jQuery( '#dgfw-gifts-carousel' ).length ) { jQuery( '.dgfw-gift' ).each(function( ) { jQuery( '.dgfw-add-gift-button, .dgfw-select-gift-button' ).prop( 'disabled', false); }); } });
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘WooCommerce 3.3.x – disabled buttons fix – cant add gift to cart’ is closed to new replies.