customize default_sort_by

edith13
New Member
1 0 0

Hi,

 

I'm trying to remove some sort by options (as image).

截圖 2022-03-06 下午6.12.41.png

While editing the code, I found it's a "collection.default_sort_by" (as image).

截圖 2022-03-06 下午6.15.01.png

 

Don't know where can I edit the setting of "collection.default_sort_by", so that I can remove the options "featured, A-Z, Z-A".

 

Please help me to solve this problem. Thanks!

Reply 1 (1)
LitCommerce
Astronaut
1253 282 270

Hi @edith13,

Please add code here:

beforebeforeafterafter

Code:

{% if option.value != 'manual' and option.value != 'title-ascending' and option.value != 'title-descending' %}

{% endif %}

Hope it helps!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!