Viewing 2 posts - 1 through 2 (of 2 total)
  • #88137
    greifeneder
    Member
    Post count: 36

    Hi!

    I want all my products always to be shows in “newness” (sort by newness). But now its on Default. How to change that?

    And can I in the future put the products to be shown in a certain way, I mean can I sort them and show them how I like?

    Thank you.

    #88389
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    This code should be added to functions.php of your theme.

    add_filter('woocommerce_default_catalog_orderby', 'custom_default_catalog_orderby');
     
    function custom_default_catalog_orderby() {
    return 'date'; // Can also use title and price
    }

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register