Home Forums WoodMart support forum Use brand name for tab title does not translate

Use brand name for tab title does not translate

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #36414

    getimo
    Participant

    Hi,

    really glad that you implemented that feature so fast after the request! Absolutley amazing work!

    Unfortunately I can’t translate that string?! I tried translating other strings and that does work. What am I doing wrong?

    Attachments:
    You must be logged in to view attached files.
    #36459

    Artem Temos
    Keymaster

    Could you please provide us your admin access so we can check what is wrong there?

    #36487

    getimo
    Participant

    Credentials added.

    #36491

    Artem Temos
    Keymaster

    Are you able to disable extra caching plugins so we can see our changes?

    #36493

    getimo
    Participant

    Sure, it’s deaactivated now. It is a staging site.

    #36502

    Artem Temos
    Keymaster

    Sorry, seems to be a small issue in the code. Try to add the following PHP code snippet to the child theme functions.php file to fix this

    function woodmart_product_brand_tab( $tabs ) {
    	global $product;
    	
    	$show_tab = false;
    	$brand_title = 'brand';
    	$brand_info = wc_get_product_terms( $product->get_id(), woodmart_get_opt( 'brands_attribute' ), array( 'fields' => 'all' ) );
    	if ( !isset( $brand_info[0] ) ) return $tabs;
    	
    	if ( $brand_info[0]->description ) $show_tab = true;
    	if ( woodmart_get_opt( 'brand_tab_name' ) ) $brand_title = $brand_info[0]->name;
    	
    	if ( $show_tab ) {
    		$tabs['brand_tab'] = array(
    			'title' 	=> sprintf( esc_html__( 'About %s', 'woodmart' ), $brand_title ),
    			'priority' 	=> 50,
    			'callback' 	=> 'woodmart_product_brand_tab_content'
    		);
    	}
    
    	return $tabs;
    }
    #36518

    getimo
    Participant

    I prefer to wait for the update since the site is not live yet 🙂

    #36541

    Artem Temos
    Keymaster

    OK great 🙂

    #40375

    getimo
    Participant

    Just wanted to ask when will this be fixed?

    #40441

    Eric Watson
    Participant

    Hello,

    This error is fixed in our last update, you need to update your theme to the latest version.

    Kind Regards
    XTemos Studio

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