Forum Forum WordPress Theme SNS BiaMuc – WooCommerce WordPress Theme Help Adding Code to Funtion.php

  • Author
  • #33303


    Hello Stephen,

    There’s a bug with the woocommerce product page when you create a variable product it creates an “Out of stock” error. In the function.php file I need help adding the code below to fix the bug.

    // Increase WooCommerce Variation Limit
    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    return 100;
    add_filter( ‘woocommerce_ajax_variation_threshold’, ‘custom_wc_ajax_variation_threshold’, 100, 2 );

    I’m not sure where or how to add it to the screenshot below?

    Please Help.

    1. Woocommerce-PHP.png

You must be logged in to reply to this topic. Click here to login or register