• Resolved bhatiarajnish

    (@bhatiarajnish)


    I am working on a woocommerce multivendor site with Dokan. I have created taxonomy using CPT UI and it is working well with woocommerce product and showing up in admin panel. However I wish to make these taxonomy available at vendor product edit page so that vendor can select the appropriate taxonomy as per the product he is uploading.

    I am unable to figure out how to do it. Can you please assist.

    Appreciate your guidance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    At least at the moment, I’m not sure how to go about that either, as CPTUI only handles the registration of content types, and doesn’t have a hand in how they’re used.

    Is this vendor product edit page using what I’ll call the standard post editor screen, or is it a custom frontend solution with its own templates and UI for editing content? If the first one, then it may be possible to add this taxonomy to their post type as well, but I won’t make any promises there. If it’s the latter with their own UI, then that’s going to be a bigger overall lift as you would need to find a way to add UI to that edit screen and list available taxonomy terms, and then also process saving in some way based on chosen items.

    Thread Starter bhatiarajnish

    (@bhatiarajnish)

    The dokan seller dashboard is standard and has standard action hooks. Product edit page is one of the pages to add/edit the products by the seller.

    Here is the link to all the seller dashboard hooks including product edit actions.

    https://wedevs.com/docs/dokan/developer-documentation/seller-dashboard-action-hooks/

    out of the hooks above we can either use
    “dokan_product_edit_after_main”

    or

    dokan_product_edit_before_main

    We need to display and process the inputs from taxonomies in a similar way you are doing in the product edit page of admin panel.

    Hope this helps and I get some guidance from you.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    CPTUI itself isn’t doing anything custom or unique for taxonomy management on given posts, that’s all WordPress core doing its thing. We just make sure the taxonomies are registered at the appropriate times.

    That said, there’s not much I can help with or provide any sort of code for.

    Thread Starter bhatiarajnish

    (@bhatiarajnish)

    Thanks for response. I will try to figure out. Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CPT UI with Dokan Multivendor’ is closed to new replies.