Add product to more than one category

This topic contains 3 reply and 3 voices, and was last updated by Roberto 9 years, 11 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
January 24, 2015 at 7:38 am 34875
Roberto 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
January 24, 2015 at 10:40 am 34881
towhid towhid

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 🙂

January 24, 2015 at 12:05 pm 34891
Neen Monty Neen Monty

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

January 24, 2015 at 2:41 pm 34897
Roberto Roberto

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 3 Posts - 1 through 3 (of 3 total)