BuddyBoss Home – Web › Support Forums › Solutions › Social MarketPlace › Change default sort order on seller and store pages
- This topic has 14 replies, 5 contibutors, and was last updated 8 years, 8 months ago by Anonymous.
Question
March 17, 2016 at 9:08 am #63628@kruttenWhat code snippet would I need to use to change the default sort order on both the seller and store listing pages to “alphabetical,” instead of the current “most active”?
Answers
March 17, 2016 at 11:57 am #63652@georgeallen003Looking for this change as well.
March 17, 2016 at 2:15 pm #63684@thehappycouponerI’m looking for this, too
March 17, 2016 at 4:05 pm #63699@kruttenStill hoping for a better solution, but in the meantime, I figured out a workaround.
For those interested, here’s what I did … create a custom menu link for each directory page using the following format:
Sellers: http://your-domain.com/seller(or whatever your page is called)/?sorder=alphabetical
Stores: http://your-domain.com/store(or whatever your page is called)/?storeorder=alphabeticalTo figure out the exact links, it’s easiest to just go to the page, sort alphabetically and then copy and paste the resulting page URL. 🙂
March 18, 2016 at 6:11 am #63799@
AnonymousHi all, I have noted it and assign it to one of our concern teammate he will check it and will provide a code snippet to change it.
Regards
March 18, 2016 at 1:59 pm #63901@kruttenThank you… will be anxiously waiting 🙂
March 19, 2016 at 5:19 am #64016@thehappycouponerThanks so much for this fix, Kristin – Works like a charm! 🙂
March 19, 2016 at 5:29 am #64018@
AnonymousHi @krutten & @thehappycouponer,
For quick fix, you can add this code in your theme files:
$defaults = array( 'type' => 'active', 'action' => 'active' ); to $defaults = array( 'type' => 'alphabetical', 'action' => 'alphabetical' );
In your sellers-index.php , store-index.php
Regards
March 19, 2016 at 5:30 am #64019@thehappycouponerThanks Pallavi 🙂
March 19, 2016 at 5:33 am #64023@
AnonymousAnytime 🙂
March 19, 2016 at 8:13 am #64047@kruttenThanks @Pallavi… I’m assuming you mean in the Buddyboss-Marketplace plugin page template files, correct? I tried that before posting and again when you provided the code and it has no effect on my site. Also tried clearing my cache, just in case that was affecting things.
March 21, 2016 at 2:44 am #64205@
AnonymousHi @krutten, Copy both the files from plugin file and paste it into child theme at same path to overriding your changes:
The file path will be:
onesocial-child/bb-marketplace/store-index.php
andonesocial-child/bb-marketplace/sellers-index.php
Regards
March 21, 2016 at 8:15 am #64274@kruttenThanks @Pallavi … I tried that as well. Still no effect.
March 24, 2016 at 8:35 pm #65107@kruttenJust an FYI for those still trying to figure this out… it’s now working on mine by replacing lines 16-24 with the following code (essentially replacing the word ‘active’ with ‘alphabetical’ in the three instances shown) and making sure the files are in the exact location described by @Pallavi above:
// Filter variables $order = isset($_GET['storeorder'])?$_GET['storeorder']:'alphabetical'; $querystring = bp_ajax_querystring( 'members' ); $defaults = array( 'type' => 'alphabetical', 'action' => 'alphabetical' );
March 25, 2016 at 1:12 pm #65212@
AnonymousThanks @krutten
I will close this thread, Feel free to create new for any further queries
Regards
Varun Dubey
- The question ‘Change default sort order on seller and store pages’ is closed to new replies.