it´s ok!
I did this and now work!
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);
});
}
});
Sorry but i have:
1. WooCommerce 3.3.1
2. Me theme is storefront 2.2.8 (last version)
3. PHP 2.0.26
and the plugins not work.
When you’re going to select a gift, the plugin will be inserted in the cart with price, not as a gift.