Mobile App Refresh Campaign [Banner] 2024

Product Icon

WooCommerce Brands

by  Woo
Create, assign and list brands for products, and allow customers to view by brand.

Display Brand Name as link in the product page

Improve this code

/*
* Increase `1` on line 7 to move position of brand name
*/
add_action( ‘woocommerce_single_product_summary’, ‘wc_brands_add_brand_name’, 1 );
function wc_brands_add_brand_name() {
global $product;
$brands = implode(‘, ‘, wp_get_post_terms($product->get_id(), ‘product_brand’, [‘fields’ => ‘names’]));
echo “Brand: ” . $brands . “”;
}

Author

Sevun

Current Status

Open

Last updated: August 24, 2023

0 comments

Log in to comment on this feature request.