Show brand name on product page
-
Hi there
First I want to thank you for this great and free plugin! ??
And second a short question. How can I show the brand name on the product page? I’d like to show it in a possition close to the brand logo or the product name. Found this code for showing the description but I couldn’t change it to show the brand name. Can anyone help me out?
add_action( 'woocommerce_single_product_summary' , 'woocommerce_brand_summary', 25 ); /** * woocommerce_brand_summary * * @access public * @since 1.0 * @return void */ function woocommerce_brand_summary() { global $post; $brands = wp_get_post_terms( $post->ID, 'product_brand', array("fields" => "all") ); foreach( $brands as $brand ) { echo __( 'Brand Description', '') . ': ' . term_description( $brand->term_id, 'product_brand' ); } }
Thanks in advance.
Best,
Fletsch
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Show brand name on product page’ is closed to new replies.