• Resolved globalmanager46

    (@globalmanager46)


    Hello,
    I’m trying to add a code in my function.php to have 1 custom attribute showing after the :

    Invoice Number: ….

    Order Number: …..

    Order Date: …..

    Payment Method:….

    My Custom Attribute: ….

    But after severals trials i do not find the right way to add the product attribute correctly in the invoice. Any tips ?

    Thanks a lot in advance

    Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @globalmanager46,

    Please note that the products attributes, by default, are intended to be displayed before or after the product metadata, within the order table.

    Therefore, since the order data column is outside, you would need to run a loop through all the order items to find the attribute you want to display.

    But I wonder how it should behave if there is more than one item with the same attribute: should they all be displayed, one per line, or only the first one and then the loop will stop?

    Please provide me with more details, so I can try to give you a better advice.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @globalmanager46,

    Since we haven’t heard back from you in the last two weeks, we’re assuming you solved this issue, so I’ll go ahead and mark this ticket as Resolved.

    Feel free to reply to this topic is you still need help with this, or open a new topic if you have any other questions!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add a custom attribute in the invoice’ is closed to new replies.