This nifty little snippet will allow you to easily change the number of upsell products as well as the number of upsell products per row.
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 ); | |
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_upsells', 15 ); | |
if ( ! function_exists( 'woocommerce_output_upsells' ) ) { | |
function woocommerce_output_upsells() { | |
woocommerce_upsell_display( 5,5 ); // Display 5 products in rows of 5 | |
} | |
} |
Leave a Reply