Hi,
Thanks for reaching out to us.
Please try the below snippet using a plugin called Code Snippets:
add_filter('default_woo_variation_swatches_single_product_dropdown_html', function($default){
global $product;
$target = [14]; //Insert the product id’s inside the target to display default dropdown rather than swatches. For example: [14,45]
if( in_array( $product->get_id(), $target ) ){
return true;
}
return $default;
}, 10, 1);
You can also add the above code inside your current child theme’s functions.php file.
Note: It is recommended to add the Custom Code to the child theme’s functions.php file, to avoid any data loss while updating the Parent Theme.
Hope to hear from you soon.
Thank You