• Resolved shemakeswebsites

    (@shemakeswebsites)


    How would I exclude the admin store from the store list? I know I can disable the vendor account, but that also removes the ability to sell items. I want to sell items from the admin, but I don’t want them to appear as a vendor. Help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @shemakeswebsites,

    The store listing shows the stores that enable for selling. If you do not want the admin store to show on the store-listing page, you can disable the admin selling ability. That way the store will not be available on the store-listing age.

    It is not recommended to sell as admin, we suggest you create a vendor account to manage the selling.

    I hope the information helps. Let me know if there is any confusion or queries.

    Thank you 🙂

    Thread Starter shemakeswebsites

    (@shemakeswebsites)

    Regardless, of I create another account to sell the subscription packs that vendor would also appear in the store list. How do I hide a specific vendor from the store list? There must be a way to target a user ID to hide it – can you give some guidance?

    Hello @shemakeswebsites ,

    If you want to programmatically filter out a specific seller from the store list only you have to use the template from – dokan-lite/templates/store-lists-loop.php

    Each vendor has a user ID that you can collect from the User’s section by following these methods.

    If I want to remove the store of user ID 1 I will put this if condition just above the line #19

    <?php if ($seller->ID !== 1) ?>

    This will not show the store with user ID 1.

    I hope you find it useful.

    Thank you 🙂

    Thread Starter shemakeswebsites

    (@shemakeswebsites)

    Thank you so much. This is what I used to make this work:

    <?php
                    foreach ( $sellers['users'] as $seller ) if ($seller->ID !== 1) 

    I really appreciate your help!

    Hello @shemakeswebsites ,

    Awesome!

    That is a much smarter solution. Thanks for sharing as well.

    Create a new thread if you have any other queries.

    Thank you 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Exclude admin from store list’ is closed to new replies.