Woocommerce - default sort modification & no. of products shown per page


Client wants the default sort function to be Sort by Title: A-Z instead of Sort by Popularity and also wants to show more than 3 rows of products in a category.

Can you advise how this can be done as can’t see options in the shop editor (other than 3 rows) and no option for sorting via the theme options.



Sorting feature is the default Woocommerce option and to change it, you can use this plugin https://wordpress.org/plugins/woocommerce-extra-product-sorting-options/ or add custom code in functions.php file of your child theme as described here https://shopitpress.com/blog/woocommerce-setup/manage-woocommerce-product-sorting-options/

How many columns do you want to show on the Shop page?
Do you use Shop Customizer?

Best regards,
Artbees Support.


That plugin worked well for the sort! thanks.

For the number of products shown per page I am using the shop customiser and this allows me to do columns and rows but I can only see option for 3 rows and no more. Is there a way to add more row options?



Unfortunately Shop Customizer doesn’t have options to add more columns.
You can try to add this code in functions.php file in the child theme:

 * Change number of products that are displayed per page (shop page)
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );

    function new_loop_shop_per_page( $cols ) {
      // $cols contains the current number of products per page based on the value stored on Options -> Reading
      // Return the number of products you wanna show per page.
      $cols = 9;
      return $cols;

Thank you.
Best regards,
Artbees Support.