if ( ! function_exists( ‘woocommerce_product_loop_start’ ) ) {
/**
* Output the start of a product loop. By default this is a UL
*
* @access public
* @param bool $echo
* @return string
*/
function woocommerce_product_loop_start( $echo = true ) {
ob_start();
wc_get_template( ‘loop/loop-start.php’ );
if ( $echo )
echo ob_get_clean();
else
return ob_get_clean();
}
}
Why do you need to add that code?
I think the culprit is in your theme, like archive.php/taxonomy.php or something.
However, it looks like you are using premium theme, it would be better to ask the theme author for help.
OK.
Pls try below code instead.
Since function woocommerce_product_loop_start now has filter hook, it would be better use it.
Note this fix might affect other product loop output.