Support » Plugin: WooCommerce » function woocommerce_upsell_display problem

  • Hi,

    I’ve insert in my functoin theme this code :

    add_theme_support( ‘woocommerce’ );

    function woocommerce_upsell_display( $posts_per_page = 8, $columns = 4, $orderby = ‘rand’ ) {
    woocommerce_get_template( ‘single-product/up-sells.php’, array(
    ‘posts_per_page’ => $posts_per_page,
    ‘orderby’ => $orderby,
    ‘columns’ => $columns
    ) );
    }

    for classify correctly my products, BUT my problem is an random order (not corresponding with my order in product page). Can u help me because i don’t find any value for this string : $orderby = ‘rand’

    http://wordpress.org/plugins/woocommerce/

  • The topic ‘function woocommerce_upsell_display problem’ is closed to new replies.