What result template you using?
If it is the ajax result template, you can use uwpqsf_result_tempt
to customize the result.
1) How can I show the product description instead of the excerpt in the search results?
I am not sure but you can use the post content for product description.
How can I show a fixed thumbnail in case the product doesn’t have a featured photo?
First you have to add a fixed thumbnail uploaded to your site and used the image link.
eg:
add_filter('uwpqsf_result_tempt', 'customize_output', '', 4);
function customize_output($results , $arg, $id, $getdata ){
$query = new WP_Query( $arg );
$html = '';
if ( $query->have_posts() ) {
$html .= '<h1>'.__('Search Results :', 'UWPQSF' ).'</h1>';
while ( $query->have_posts() ) {
$query->the_post();global $post;
$html .= '<article><header class="entry-header">';
//here check if got featured images, and used the uploaded image if not
if ( has_post_thumbnail() ) {
$html .= get_the_post_thumbnail();
}else{ //insert the uploaded image to the src
$html .= '<img src="https://yoursite.com/wp-content/uploads/xxx/default.jpg" >';
}
$html .= '<h1 class="entry-title"><a href="'.get_permalink().'" rel="bookmark">'.get_the_title().'</a></h1>';
$html .= '</header>';
//here we add the content
$html .= '<div class="entry-summary">'.$post->post_content.'</div></article>';
}
$html .= $this->ajax_pagination($pagenumber,$query->max_num_pages, 4, $id,$getdata);
} else {
$html .= __( 'Nothing Found', 'UWPQSF' );
}
/* Restore original Post Data */
wp_reset_postdata();
return $html;
}
*please read the comments in the script.
If you are using the default result template, then you will need to customize your theme’s search,php. You need to find the looping in this template (it might be in different template), that start with the while loop.
The script above not tested, it might have some typo/syntax error, you should turn on the debug mode when using the script to make sure it run properly.