Home Forums Theme Support Dokan Product Tags on Front-end

This topic is: not resolved

Tagged: , ,

This topic contains 5 replies, has 5 voices, and was last updated by  Ollie 3 years, 12 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18511

    Paul
    Member
    Post count: 118

    Hi,

    Are there any plans for allowing sellers to add product tags (native woocommerce product tags) on the front-end dashboard?

    Thanks,

    Brad

    #18515

    Nizam Uddin
    Keymaster
    Post count: 670

    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.

    #29249

    Roberto
    Member
    Post count: 59

    UP!

    #29259

    Roberto
    Member
    Post count: 59
    //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

    #39835

    Brenda
    Participant
    Post count: 170

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

    #45373

    Ollie
    Member
    Post count: 1

    Hi ,

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

    Thanks
    Sanjeev

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

The topic ‘Product Tags on Front-end’ is closed to new replies.