0
A
답변
1
당신이 대답을받은 havent 한보고에이 블록을 호출하는 방법을 가르쳐주세요, 난 내 자신의 사용자 정의 만든의 동일하지 및 absolutelly하지 일 (내가 사용하는) 최적하지만이어야 작동 모든 방법은 여기에서있다 : https://docs.woocommerce.com/wc-apidocs/class-WC_Order.html
<table class="widefat">
<thead>
<tr>
<th class="row-title">Ordre-ID</th>
<th>Customer ID</th>
<th>Name</th>
<th>adress</th>
<th>note</th>
<th>button</th>
</tr>
</thead>
<tbody>
<?php
global $woocommerce;
$filters = array(
'post_status' => 'completed',
'post_type' => 'shop_order',
'posts_per_page' => 200,
'paged' => 1,
'orderby' => 'modified',
'order' => 'DESC'
);
$loop = new WP_Query($filters);
while ($loop->have_posts()) {
$loop->the_post();
$order = new WC_Order($loop->post->ID);
$items = $order->get_items();
<tr class="">
<td class="row-title"><a href=""><?=$order->get_order_number(); ?></a></td>
<td><a href=""><?=$order->get_customer_id(); ?></a></td>
<td><?=$order->get_formatted_shipping_full_name(); ?></td>
<td><?=$order->get_shipping_address_1(); ?></td>
<td><?=$order->get_customer_note(); ?></td>
<td><input type="button" class="button" id="order_id-<?=$order->get_order_number();?>" value="Send" data-id="order_id-<?=$order->get_order_number();?>"></td>
</tr>
<?php
}
?>
</tbody>
</table>
관련 문제
- 1. WooCommerce 주문 데이터 가져 오기
- 2. 결제 필드로 Woocommerce 주문 ID 가져 오기
- 3. Woocommerce : 주문 분류별 주문
- 4. woocommerce : 주문
- 5. Magento에서 주문 가져 오기
- 6. 특정 주문 가져 오기
- 7. 가져 오기 주문
- 8. 신규 주문 후 주문 데이터 가져 오기
- 9. SAP 주문 작업 - 가져 오기 주문
- 10. Woocommerce CSV 가져 오기 도구
- 11. Woocommerce 함수에서 값 가져 오기?
- 12. Woocommerce 범주 가져 오기 Thumbnails
- 13. Woocommerce 주문 수량 (배수)
- 14. Woocommerce - 주문 배송비를 추출하려고합니다.
- 15. WooCommerce 주문 물품을 추가하십시오
- 16. Woocommerce 기본 주문 상태
- 17. Woocommerce 주문 키
- 18. WooCommerce 주문 만들기
- 19. Woocommerce 주문 결제 이름으로
- 20. WooCommerce "신규 주문"보고서
- 21. 주문 WooCommerce 제품 등급
- 22. Magento 주문 가져 오기 내보내기
- 23. Accapac vb로 주문 가져 오기
- 24. Magento 주문 가져 오기/내보내기
- 25. 자동 주문 날짜 주문 완료시 변경 Woocommerce
- 26. Woocommerce 2.6+ 페이지 당 내 계정 주문 목록 사용자 지정
- 27. Woocommerce Admin 주문 주문 페이지에서 고객 취소 주문 수 표시
- 28. Woocommerce - 페이지 템플릿 - 주문 : billing_first_name
- 29. Woocommerce 수동 주문 관리 승인
- 30. WooCommerce 주문 ID를 후크에 전달하기