Lets say you want to show 5 accessories in one row. Then use this shortcode:

function filter_woocommerce_upsell_display_args( $array ) { 
    
    $array = 5;
    return $array; 
}; 
         
// add the filter 
add_filter( 'woocommerce_upsell_display_args', 'filter_woocommerce_upsell_display_args', 10, 1 ); 

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.