Cirilla Documentations

  1. Home
  2. Docs
  3. Cirilla Documentations
  4. How to
  5. How to setting default sorting in product list screen?

How to setting default sorting in product list screen?

From version 4.0.0, you can go file cirilla/lib/constants/product_list.dart to setting defaultSort with values:

ValuesDescription
{
'key': 'product_list_default',
'query': {
'orderby': 'menu_order',
'order': 'asc',
}
}
Default sorting
{
'key': 'product_list_popular',
'query': {
'orderby': 'popularity',
'order': 'desc',
},
}
Popular
{
'key': 'product_list_rating',
'query': {
'orderby': 'rating',
'order': 'desc',
}
}
Rating
{
'key': 'product_list_latest',
'query': {
'orderby': 'date',
'order': 'desc',
}
}
Lasest
{
'key': 'product_list_low_to_high',
'query': {
'orderby': 'price',
'order': 'asc',
}
}
Low to high
{
'key': 'product_list_high_to_low',
'query': {
'orderby': 'price',
'order': 'desc',
}
}
High to low
Was this article helpful to you? Yes No

How can we help?