• Trying to help my users known when a product is special order, I am tagging products that are “Special Order” I want to add a to the product description, or just somewhere on the product page the Tag’s Description text.

    Is it possible?

    Using Child theme “Outlet”

    https://wordpress.org/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    Can you confirm if I am understanding correctly? You are wanting an additional description to show on the single product page when a product has a specific tag?

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    You could just literally add a ‘Special Order’ tag for these products, then if you need to show some custom CSS or banner of some sort, create a function that looks for that matching tag.

    You can use a conditional tag:
    https://docs.woocommerce.com/document/conditional-tags/#product-tag-page

    @dcweber

    Would that tag be added as a product attribute as well?

    Thread Starter dcweber

    (@dcweber)

    Jesse Pearson, yes that would be excellent.

    Thomas, as amazingly perfect as that would be I don’t have enough experience in WordPress. I assume that something like that would be a javascript function that if tag = “Special Order” then display a banner at the top of the page? If so would that be implemented on the functions.php? I’d love to give it a try.

    Luke, It could be, and probably should be.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Some custom PHP should be all that you need, shouldn’t need any javascript.

    Another solution could be to use a plugin like this: https://wordpress.org/plugins/blocks/. You can add this additional content in that plugin, and then enter the shortcode on all products where you want this information to show up.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Displaying Tag Description’ is closed to new replies.