Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #703161

    Hi there,

    Is there a way to get a specific product feature into the title line of a product in the product list page?

    Best regards and thanks for all the support sofar!

    #703558

    Hey Zest,

    I might have misunderstood you, but wouldn’t be easier to simply rename the product?

    Best regards,
    Rikard

    #703693

    Hi,

    No, I think you have exactly understood. Your question is very valid. But we want to keep the product names clean for SEO reasons and they are being used in other contexts in the site “cleaned” too.

    Best regards.

    #705242

    Hi,

    Is that a product attribute? You can try the “woocommerce_after_shop_loop_item_title” hook.

    add_action('woocommerce_after_shop_loop_item_title', 'ava_add_variation');
    function ava_add_variation() {
    	global $product;
    	$atts = $product->get_attribute( 'size' ); // name of the attribute
    	if(empty($atts)) return;
    	echo $atts;
    }

    Best regards,
    Ismael

    #705289

    Fantastic, thanks! Have a good weekend.

    #705669

    Hi,

    Glad we could help :)

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add a product feature to the product listing’ is closed to new replies.