Up to 50 percent off

Product Tags on Front-end

This topic contains 5 reply and 5 voices, and was last updated by Ollie 9 years, 5 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
April 11, 2014 at 4:10 pm 18511
Ollie Hi, Are there any plans for allowing sellers to add product tags (native woocommerce product tags) on the front-end dashboard? Thanks, Brad
April 11, 2014 at 5:47 pm 18515
Nizam Uddin Nizam Uddin

Hello Brad
Currently we have no plan about products tag in forntend because lots of to do already in our list. But in near future we will definitely add this feature. Thanks for understanding.

October 28, 2014 at 4:26 pm 29249
Roberto Roberto

UP!

October 28, 2014 at 7:02 pm 29259
Roberto Roberto
//Display Fields into DASHBOARD edit and new
add_action('dokan_product_edit_before_main', 'my_dokan_store_end_fields_edit',1);
add_action('dokan_new_product_form', 'my_dokan_store_end_fields_edit',1);
function my_dokan_store_end_fields_edit()
{
$terms = get_the_terms(get_the_ID(),"product_tag");
	$term_str = "";
	if ( $terms && ! is_wp_error( $terms ) ) {
		$term_links = array();
		foreach ( $terms as $term ) {
			$term_links[] = $term->name;
		}				
		$term_str = join( ", ", $term_links );
	}
   echo '<span class="dokan-form-group">
			<label>' . __( 'Tags: Separate with commas', 'my-dokan' ) . '
				<textarea class="dokan-form-control" name="_tags">' . $term_str . '</textarea>
			</label>
		</span>';
}

// Save Fields from DASHBOARD
add_action('dokan_process_product_meta', 'mydokan_save_meta_dashboard');
function mydokan_save_meta_dashboard( $post_id ){
	//tags
	$tag_list = stripslashes($_POST['_tags'] );
	$tags = explode(",", $tag_list);
	wp_set_post_terms( $post_id, $tags, 'product_tag' , false );
}

Hope it helps

March 24, 2015 at 6:28 am 39835
Brenda Brenda

Status and update? Sellers still need the ability to input tags from the Seller Dashboard.

May 27, 2015 at 7:49 pm 45373
Ollie Ollie

Hi ,

I am facing same problem,
Please suggest me how can we show all products tags on the front end?

Thanks
Sanjeev

Viewing 5 Posts - 1 through 5 (of 5 total)