• Resolved Fatma

    (@omandaisy)


    I need to hide or grey unavailable variation from fornt-end for all languages, i’m using built-in variations in multi-languages site by (WPML)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Fatma

    (@omandaisy)

    I found the answer on another site, if someone need it

    Increase WooCommerce Unavailable/Disabled/Out of Stock Variation Limit
    You will need the add the below code to your active WordPress Theme functions.php file.

    function custom_woocommerce_ajax_variation_threshold( $qty, $product ) {
         return 1000; // Set 1000 to another number to load faster
    }
    
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_woocommerce_ajax_variation_threshold', 10, 2 );

    it works

    • This reply was modified 4 years, 9 months ago by Fatma.
    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    That’s wonderful! I’m glad to hear that you could solve it 🙂

    Great! If you have any further questions, you can start a new thread.

    Cheers!

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

The topic ‘Hide unavailable variation’ is closed to new replies.