if statement for search results

Within the loop the best way to check if the result is a product would be to check the value of get_post_type():

if ( get_post_type() === 'product' ) {

}

As you say, is_woocommerce(), is_product() and is_search() are for checking which type of page is being viewed regardless of the current item in the loop.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)