I want to find a variation stocks text but i am unable. I get below given code from templates/single-product/add-to-cart/variable.php file from woocommerece plugin. please any help will be appreciated.

foreach ( $terms as $term ) {
        if ( in_array( $term->slug, $options ) ) {
            $html .= '<option value="' . esc_attr( $term->slug ) . '" ' . selected( sanitize_title( $args['selected'] ), $term->slug, false ) . '>' . esc_html( apply_filters( 'woocommerce_variation_option_name', $term->name ) ) . 'in stock etc</option>';
     }
}

Read more here: How to find varation stock woocommerece


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: