• ResolvedPlugin Author DecomTeam

    (@decomteam)


    1. Fix if all gift buttons are disabled on Cart page:

    <script>
    if ( jQuery( '#dgfw-gifts-carousel' ).length ) {
        jQuery( '.dgfw-gift' ).each(function( ) {
            jQuery( '.dgfw-add-gift-button, .dgfw-select-gift-button' ).prop( 'disabled', false);
        });
    }
    </script>

    *we will re-check beta version to see shall it be fixed in next release – or we will integrate fix in our plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DecomTeam

    (@decomteam)

    How to add code / giftable fast fix for disabled buttons:
    1. Copy/Paste code to footer.php <script>.... </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);
        });
    }
    });
    Jon

    (@freshyjon)

    Thoughts on actually updating your plugin?

    Plugin Author DecomTeam

    (@decomteam)

    @freshyjon plugin will be updated but no ETA (week, 2 weeks..)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WooCommerce 3.3 Issues’ is closed to new replies.