Hello
I found somewhere in this forum a way to add a brand icon in the shop page.
function brands_in_loop(){
global $product;
$output = array();
$product_brands = wp_get_post_terms( $product->get_id(), woodmart_get_opt( ‘brands_attribute’ ) );
echo ‘<div class=”custom-loop-brands”>’;
foreach ( $product_brands as $brands ) {
$image = get_term_meta( $brands->term_id, ‘image’, true );
if ( $image ) {
echo ‘<span class=”brand-archive”>
slug ) . ‘” alt=”‘ . esc_attr( $brands->slug ) . ‘” /></span>’;
}else{
echo ‘<span class=”brand-archive”>’ . $brands->name . ‘</span>’;
}
}
echo ‘</div>’;
}
add_action( ‘woocommerce_shop_loop_item_title’, ‘brands_in_loop’, 5 );
I was wondering if it is possible to modify the code in such a way that when a customer click over the brand icon to redirected in the filters area ( this is happening when I do the same in the quick view popup -check the video)
Regards Leonidas