首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >修改WooCommerce订单页面

修改WooCommerce订单页面
EN

Stack Overflow用户
提问于 2018-09-29 18:10:55
回答 1查看 65关注 0票数 0

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

昨天,我为每个订单添加了第二个id属性,我可以在其中设置一个自定义的客户id (Wordpress中的user_id)。此字段命名为"second_customer“。

我这样做是因为我想把客户1接受的订单也展示给另一个客户,以防"second_customer“将他的user_id作为值。

现在我需要修改orders.php并修改它,以便订单加载到他的帐户上的"second_customer“,也是正常的方式。所以我的问题是:我如何才能准确地获得在我的自定义属性中定义的用户id的行(顺序)?

EN

回答 1

Stack Overflow用户

发布于 2018-09-30 12:54:05

作为你的问题:我怎样才能准确地得到像图片中那样的行,使用表格HTML元素,比如上面的屏幕截图,上面有5个标题,有表格标题的行-和表行-:

代码语言:javascript
复制
<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>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52567323

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档