Hey There,
Please note that X 4.0.6 only supports WooCommerce 2.3.9. Hopefully, our next version update X 4.0.7 will be rolling out soon which will support the latest WooCommerce 2.4.4.
Please replace the last few lines of code in your child theme’s functions.php file with this code instead:
// =============================================================================
// WooCommerce Short Thumbnail size change
// =============================================================================
function x_woocommerce_shop_thumbnail2() {
GLOBAL $product;
$id = get_the_ID();
$thumb = 'shop_catalog';
$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, $thumb );
if ( ! empty( $rating ) ) {
echo '<div class="star-rating-container aggregate">' . $rating . '</div>';
}
echo '</a>';
echo "</div>";
}
add_filter('init', function() {
remove_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail', 10 );
add_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail2', 10 );
});
Hope this helps. Please let us know.