BuddyBoss Home – Web Support Forums Solutions Social MarketPlace Change default sort order on seller and store pages

Viewing 15 posts - 1 through 15 (of 15 total)
  • Question

    #63628
    @krutten

    What 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

    #63652
    @georgeallen003

    Looking for this change as well.

    #63684
    @thehappycouponer

    I’m looking for this, too

    #63699
    @krutten

    Still 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=alphabetical

    To 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. 🙂

    #63799

    Anonymous
    @

    Hi 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

    #63901
    @krutten

    Thank you… will be anxiously waiting 🙂

    #64016
    @thehappycouponer

    Thanks so much for this fix, Kristin – Works like a charm! 🙂

    #64018

    Anonymous
    @

    Hi @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

    #64019
    @thehappycouponer

    Thanks Pallavi 🙂

    #64023

    Anonymous
    @

    Anytime 🙂

    #64047
    @krutten

    Thanks @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.

    #64205

    Anonymous
    @

    Hi @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 and onesocial-child/bb-marketplace/sellers-index.php

    Regards

    #64274
    @krutten

    Thanks @Pallavi … I tried that as well. Still no effect.

    #65107
    @krutten

    Just 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'
            );
    #65212

    Anonymous
    @

    Thanks @krutten
    I will close this thread, Feel free to create new for any further queries
    Regards
    Varun Dubey

Viewing 15 posts - 1 through 15 (of 15 total)
  • The question ‘Change default sort order on seller and store pages’ is closed to new replies.