This topic has 2 replies, 2 voices, and was last updated 8 years by sashv13.

  • Author
  • #98655
     sashv13
    Participant

    Hi,

    Please see the attached screenshot.

    I have a store with multiple brands and would like to display the brand name after the title and before the price. I have created a custom field ‘Brand’ Can you please provide me assistance in adding that

    Attachments:
    You must be logged in to view attached files.
    #98685
     sharmstr
    Moderator

    Woocommerce has a filter to inject information in that location. Here’s the code to do that. Put it in your child theme’s functions.php file. You’ll have to figure out how to get the custom field though.

    COPY CODE
    
    add_action( 'woocommerce_after_shop_loop_item_title', 'add_brands', 7 );
    function add_brands() {
        // replace the below code with your code to get the brand name
        echo "brand name here.";
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #98998
     sashv13
    Participant

    Thank you!!

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?