Site logo

Archived topic

Unable to Safely Update GP Premium

20 replies · Started by Paul on May 6, 2019

Viewing posts 16–21 of 21

Awesome, glad it's working now :)

I wound up needing to use perfmatters to actually disable autoptimize on woocommerce pages. In further testing that check box didn't work.

-Paul

You could try this:

add_filter( 'autoptimize_filter_noptimize', function( $noptimize ) {
    if ( function_exists( 'is_cart' ) && is_cart() ) {
        $noptimize = true;
    }

    return $noptimize;
} );

So after much tinkering, I simply could not get GP Premium 1.82 to work with the Woocommerce shop and autoptimize. GP premium version 1.78 works flawlessly though... so I reverted to that. Not sure what was changed to create the problem on my site though.

My code above didn't help to disable Autoptimize on the cart?

You can use 1.8.2, you just might need to disable the quantity buttons if they're not working in your case.

This archived topic is closed to new replies.