我需要修改我的WooCommerce订单页面,但我没有这样的经验。目前(和正常情况下一样)我的订单页面如下所示:

昨天,我为每个订单添加了第二个id属性,我可以在其中设置一个自定义的客户id (Wordpress中的user_id)。此字段命名为"second_customer“。
我这样做是因为我想把客户1接受的订单也展示给另一个客户,以防"second_customer“将他的user_id作为值。
现在我需要修改orders.php并修改它,以便订单加载到他的帐户上的"second_customer“,也是正常的方式。所以我的问题是:我如何才能准确地获得在我的自定义属性中定义的用户id的行(顺序)?
发布于 2018-09-30 12:54:05
作为你的问题:我怎样才能准确地得到像图片中那样的行,使用表格HTML元素,比如上面的屏幕截图,上面有5个标题,有表格标题的行-和表行-:
<table style="width:100%">
<tr>
<th>Product Id</th>
<th>Date</th>
<th>Status</th>
<th>Address</th>
<th>Name</th>
</tr>
<tr>
<td>#356</td>
<td>30 September</td>
<td>Customer</td>
<td>10 Address st, China</td>
<td>John Doe</td>
</tr>
<tr>
<td>#357</td>
<td>30 September</td>
<td>Customer</td>
<td>32 Address st, Porland</td>
<td>Sarah smith</td>
</tr>
<tr>
<td>#358</td>
<td>29 September</td>
<td>Customer</td>
<td>55 Address st, New York</td>
<td>Ben Barber</td>
</tr>
</table>https://stackoverflow.com/questions/52567323
复制相似问题