Get more for your money each Wednesday with big savings on selected extensions. Shop this week's deals.
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.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.