WooCommerce – Order by menu_order then rand

Question

I’m using WooCommerce blocks to build a filterable list of products. As far as I’m aware, these blocks use the default WooCommerce sorting. I’d like to adjust that default sorting so that it orders by:

  1. menu_order
  2. random

Does anyone know of a code snippet I can add that will achieve this please?

0
, Alex Smooth Websites 1 year 2020-07-18T06:10:27-05:00 0 Answers 38 views 0

Leave an answer

Browse
Browse