• G’day

    I need to add one attribute (pa_colorcode) to be visible in order emails for admin. How can I do so?

    https://joxi.ru/YmEBxJgUwRbZD2

    class for the attribute is
    “woocommerce-product-attributes-item woocommerce-product-attributes-item–attribute_pa_colorcode”

    That’s what I found online to make it work (sorry, I’m not a programmer so probably this code is rubbish)

    for my functions.php

    function echo_1($attribute_value){ echo $attribute_value[‘pa_colorcode’]; }
    add_action(‘atr_colorcode’, ‘echo_1’);

    for email-order-items.php
    do_action(‘atr_colorcode’, array(‘color code:’) );

    Apparently it is not showing me anything in my email after ordering an item.
    Other solutions I’ve found online are not working for me neither.

    Please help. Thank you in advance.

    The page I need help with: [log in to see the link]

  • The topic ‘Display attribute in email issue’ is closed to new replies.