Home Forums Theme Support Dokan Add product to more than one category

This topic is: not resolved

This topic contains 3 replies, has 3 voices, and was last updated by  Roberto 4 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34875

    Neen Monty
    Member
    Post count: 72

    Is it possible to add a product to more than one category in Dokan? If not, is this a feature that is coming soon?
    thanks much
    Neen

    #34881

    towhid
    Participant
    Post count: 4505

    Hello Neen,

    I am really sorry to say that, in dokan frontend there are no such kind of feature. It is need huge work to do for this feature and very complicated work. But we have this plan, hope we will implement this feature near future.

    Hope you understand me.

    Thank You ๐Ÿ™‚

    #34891

    Neen Monty
    Member
    Post count: 72

    That's a shame. when I asked the same question in pre-sales, before I paid for Dokan, I was told it was a very simple fix to add to more than one category. I hope its something that will be looked at soon, I'm sure others would need this feature too.

    thanks much
    Neen

    #34897

    Roberto
    Member
    Post count: 59

    you need to work on these actions

    add_action('dokan_product_edit_before_main', 'monty_store_end_fields_edit',1);
    add_action('dokan_new_product_form', 'monty_store_end_fields_edit',1);
    
    add_action('woocommerce_product_meta_end','woocommerce_add_taxonomies_on_single_product');
    

    and then put something like

    function fn_save(){
    $mytax_list = sanitize_text_field($_POST['_mytax'] );
    $mytax = explode(",", $mytax_list);
    wp_set_post_terms( $post_id, $mytax, 'mytax' , false );
    }

    hooked to

    add_action('dokan_process_product_meta','fn_save');

    But you need to have it done by a dev.

    Cheers

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

The topic ‘Add product to more than one category’ is closed to new replies.