1
2
3
4
5
6
7
remove_action( 'woocommerce_after_single_product', 'woocommerce_upsell_display');
add_action( 'woocommerce_after_single_product', 'woocommerce_output_upsells', 20);
if (!function_exists('woocommerce_output_upsells')) {
	function woocommerce_output_upsells() {
		woocommerce_upsell_display(3,3); // Display 3 products in rows of 3
	}
}