Support » Plugin: WooCommerce » Ordering Products Alphabetically When Displayed

Viewing 2 replies - 1 through 2 (of 2 total)
  • fcarlini

    (@fcarlini)

    Solved this myself. If someone needs the answer here it is below

    /**
    * This code orders the catalog by either title or date
    **/
    add_filter('woocommerce_default_catalog_orderby', 'my_custom_default_catalog_orderby');
    
    function my_custom_default_catalog_orderby() {
    return 'title'; // Can also use title and date
    }
    fcarlini

    (@fcarlini)

    This is resolved. Code is above.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ordering Products Alphabetically When Displayed’ is closed to new replies.