• Resolved raghadmadwar

    (@raghadmadwar)


    Hi, I want to make the parent category is not allowed to choose, the vendor can choose only a child category, how can I do that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter raghadmadwar

    (@raghadmadwar)

    ??

    Hello @raghadmadwar,

    Your mentioned query might require customization on the product upload form of Dokan but by default, we do not have any pre-made solution for it by now.

    As it will require custom development for that reason, I am unable to provide further assistance but you can modify the file here- dokan/wp-includes/category-template.php

    Thanks!

    Thread Starter raghadmadwar

    (@raghadmadwar)

    @nazmulhassann20 thank you for your replay.
    But I couldn’t find the file you’ve mentioned.
    category-template.php
    can you tell me the right path of it?

    Hello @raghadmadwar ,

    I believe you want to hide the parent categories from the product upload forms. Is that right?

    In that case, you can take a look at this line,
    wp_dropdown_categories( apply_filters( 'dokan_product_cat_dropdown_args', $category_args ) );

    Which is available in these files:

    \dokan-lite\templates\products\new-product-single.php
    \dokan-lite\templates\products\new-product.php
    \dokan-lite\templates\products\tmpl-add-product-popup.php

    There is a possibility that you can use the “exclude” args available for wp_dropdown_categories

    Thank you ??

    Hi @raghadmadwar,

    Since you haven’t responded for long, so I mark this as resolved. If you’ve any further queries, feel free to create a new thread.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘choose a parent category is not allowed’ is closed to new replies.