Home Forums Theme Support Dokan STORE CATEGORIES

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  Fotis zabnaris 4 years, 7 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28613

    Fotis zabnaris
    Member
    Post count: 11

    Hey, i want to know if there is a way i can put sellers under categories.
    For example , Clothing will be a category with sellers that sell clothes.

    #28716

    Nayem
    Moderator
    Post count: 6480

    Hello Fotis,

    Yes this is possible.

    You can query the product based on category and then query for the authors and then group them by the product categories. After that you will be able to get the author id and then based on the author id you can get the store information.
    You can see the store.php file line number 9-10, you will see something like-

    [php]
    $store_user = get_userdata( get_query_var( ‘author' ) );
    $store_info = dokan_get_store_info( $store_user->ID );
    [/php]

    Here we are getting the store information using the author id. So you can follow the above functions.

    PS: This process will require a developer. If you are not familiar with codes, you should heir one.
    Thank you ๐Ÿ™‚

    #29006

    Fotis zabnaris
    Member
    Post count: 11

    I found a better solution. I created custom taxonomies for users.
    How can i use those taxonomies as input for dokan_get_store_info ?

    #29161

    Fotis zabnaris
    Member
    Post count: 11

    You need to include this function in your plugin all the others have it…
    It's suppose to be a marketplace! We need to put stores under categories!!

    #29351

    Sekander Badsha
    Member
    Post count: 2067

    Hello Fotis,

    I have forwarded your idea to the developer team. Hope they will add this feature in the next update.

    Thank you ๐Ÿ™‚

    #29362

    Fotis zabnaris
    Member
    Post count: 11

    i found the solution i will post it tomorrow with all the code changes

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘STORE CATEGORIES’ is closed to new replies.