Sort By on Product List Pages

Open to all! Ask other shopowners for help.
Post Reply
GetSirius
Member
Posts: 50
Joined: Wed Mar 17, 2021 7:15 pm
Phoenix Version:
Has thanked: 14 times
Been thanked: 2 times

Sort By on Product List Pages

Post by GetSirius »

Hello,

Wondering if there is a way to completely remove the Sort By box on product listing pages?

Also, is there a way I can control the order that products are listed? I have a Sort Order addon in osC 2.3.4 but did not find such a thing here.

Thank you, Chuck

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
GetSirius
Member
Posts: 50
Joined: Wed Mar 17, 2021 7:15 pm
Phoenix Version:
Has thanked: 14 times
Been thanked: 2 times

Re: Sort By on Product List Pages

Post by GetSirius »

Still would like to know about controlling the order that products are listed.

Found my answer for removing the Sort Order box after posting.
For someone else who may want to do this:

1. Copy templates/includes/components/product_listing.php to templates/override/includes/components/product_listing.php
2. Edit file and remove the full div: <div class="card mb-2 card-body alert-filters">
3. Save and Sort By box is gone.

Hopefully this is not something that will cause an issue in the future when upgrading.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Sort By on Product List Pages

Post by heatherbell »

GetSirius wrote: Thu Mar 14, 2024 12:30 am Found my answer for removing the Sort Order box after posting.
Maybe simpler using user.css:
.alert-filters{display:none;}
GetSirius wrote: Thu Mar 14, 2024 12:30 am Still would like to know about controlling the order that products are listed.
viewtopic.php?p=7960#p7960
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Sort By on Product List Pages

Post by burt »

Another option for setting a default sort order;

viewtopic.php?f=28&t=1624&p=11290#p11290
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply