自定义字段需要添加到订单备注时的订单。我可以更新本公司及订单详细信息页面管理,航运下的字段的详细信息称为Woocommerce更新order_comments下订单后
“客户提供的说明”被称为在“order_comments”关于使用
update_post_meta($order_id, '_billing_company', $_companyName);
追加到末尾的数字结帐页面。
在订单详情页面上,它被称为“摘录”以及“post_excerpt”。 如果我使用update_post_meta($order_id, 'post_excerpt', $_urn);
该字段未更新。我也尝试过摘录和order_comments,我无法更新此字段。
任何想法?
update_post_meta($ order_id,'post_excerpt',$ _urn);确实创建了一个自定义字段,但我需要更新order_comment –