HI,
We are using RENEW, also using Woocommerce in our site. When searching for products in the search bar, it shows products huge size. I looked at some forums and apparently the sizes must be set to Woocommerce settings, I did copy and paste the below to my Functions.php but it did not work, it duplicates all the products in the thumbnails and the searchable products are still huge. So I had to delete it and go back to how it was. Please help images are huge in the search results.
function enable_product_settings() {
remove_filter( 'woocommerce_product_settings', 'x_woocommerce_remove_plugin_settings' );
}
add_filter('admin_init', 'enable_product_settings', 20 );
add_action('init', 'default_woocommerce_thumbnails', 99 );
function default_woocommerce_thumbnails() {
remove_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail', 10 );
add_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail_v2', 99 );
}
function x_woocommerce_shop_thumbnail_v2() {
GLOBAL $product;
$stack = x_get_stack();
$stack_thumb = 'shop_catalog';
$stack_shop_thumb = $stack_thumb;
$id = get_the_ID();
$rating = $product->get_rating_html();
woocommerce_show_product_sale_flash();
echo '<div class="entry-featured">';
echo '<a href="' . get_the_permalink() . '">';
echo get_the_post_thumbnail( $id , $stack_shop_thumb );
if ( ! empty( $rating ) ) {
echo '<div class="star-rating-container aggregate">' . $rating . '</div>';
}
echo '</a>';
echo "</div>";
}