简体   繁体   中英

Add product attribute or custom field in woocommerce admin order page

When viewing an order in Woocommerce I need to get a specific attribute of the ordered items. This attribute should be visible on the same row as the ordered item.

The attribute tends to change after a period of time so I would like to keep the same value of the attribute as it was when the customer ordered the item. Maybe this is done by sessions?

I would appreciate any help or example for this. Thanks

I managed to find half the solution on the following page https://stackoverflow.com/a/25645735/4028658 .

This lets me get the ordered items attributes but I still have the problem of keeping the same value of the attribute as it was when the customer ordered the item.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM