WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
function woocommerce_upsell_display problem (1 post)

  1. Claymenia
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic