• gosimple

    (@gosimple)


    Hi, Im using your plugin. I need to sort my products by SKU.
    BUT when i sort by SKU I have problems. I have a “recent products” feed on my frontpage and on another page, with is now also sorting by SKU instead of date.

    Can you please help with this? I need SHOP to be sorted by SKU – BUT ALSO all of the categories. I found a support ticket from years ago, but this Code only helps sorting by SKU on the shop page. but i need this on the det different categories too.

    add_filter( ‘woocommerce_default_catalog_orderby’, function ( $default ) {
    if ( ! is_shop() ) {
    return $default;
    }
    return ‘sku-asc’;
    } );

    • This topic was modified 5 years ago by gosimple.

    The page I need help with: [log in to see the link]

  • The topic ‘Sorting by sku makes “recents products” not work’ is closed to new replies.