• Really hoping someone can help with this as I thought it would be far more simple!

    Long story short, I have created a script that populates the upsells of WooCommerce products, all works great using the API and they are there. They show on the product page as expected but in a completely different order to how they were inputted in the admin area and I cannot seem to find a way for the order to follow admin?

    function filter_woocommerce_upsells_orderby( $orderby ) { 
        return 'menu_order';
    }; 
    add_filter( 'woocommerce_upsells_orderby', 'filter_woocommerce_upsells_orderby', 10, 1 );

    Above is the hook I have found but from the options I have found such as menu order / id / price etc, there is not simply an overide option to ignore the order and just take them as they are in admin!?

    Please help!

  • The topic ‘WooCommerce Upsells Same Order as Admin’ is closed to new replies.