• ResolvedPlugin Author DecomTeam

    (@decomteam)


    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)
  • Thank you so much.

    Please I need help.

    I downloaded Custom CSS & JS ==> Add new CSS and copied the code above

    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);
    });
    }
    });

    and hit publish (ver?ffentlichen): Nothing changed! The buttons are still disabled although I refreshed and even logged out and in and turned the pc off and on again.
    Do I have to also add it to footer.php? Or is 1. or 2. optional – so either I add it to footer.php or via the css plugin?

    What exactely do I have to do? Obviously I am doing something wrong and I need your plugin. I do not want to go back to multiple free gifts…..

    Best, Linda

    Plugin Author DecomTeam

    (@decomteam)

    This is JavaScript code, so it should go to JavaScript:
    1. Custom CSS & JS
    2. Add JS Code
    3. Remove everything and Copy/Paste the code you need (from this post or from github – its the same code)
    4. Sidebar > Where on page: Select Footer

    Screenshot – Backend – Add new JS

    Hope that helps

    YES indeed.

    Thank you.

    I am total NOOB!!!!!

    Best, Linda

    Plugin Author DecomTeam

    (@decomteam)

    We released an Update. This issue is fixed and tested up to WooCommerce 3.3.2

    I just see that Woocommerce is 3.3.3 now

    Plugin Author DecomTeam

    (@decomteam)

    WooCommerce 3.3.3 is supported – Giftable is updated to 1.0.1 (everything is working, no need for quick fix or manual stuff)

    Regards

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.