Use brand name for tab title does not translate
-
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.
Could you please provide us your admin access so we can check what is wrong there?
Are you able to disable extra caching plugins so we can see our changes?
Sure, it’s deaactivated now. It is a staging site.
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;
}
I prefer to wait for the update since the site is not live yet 🙂
Just wanted to ask when will this be fixed?
Hello,
This error is fixed in our last update, you need to update your theme to the latest version.
Kind Regards
XTemos Studio