콘텐츠로 바로가기
WordPress.org

한국어

  • 테마
  • 플러그인
  • 소식
    • 문서
    • 포럼
  • About
    • WordPress 6.9
    • 워드프레스 6.8
    • 워드프레스와 40% 웹을 위한 여정
    • 워드프레스 번역 핸드북
  • 워드프레스 한국팀
  • 워드프레스 받기
워드프레스 받기
WordPress.org

Plugin Directory

Show Orders Shortcode for WooCommerce

  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인
  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인

Show Orders Shortcode for WooCommerce

작성자: con
다운로드
  • 세부사항
  • 평가
  • 설치
  • 개발
지원

설명

Drop [show_wc_orders] into any page, post or widget area that renders shortcodes, and the logged-in customer sees their own orders: order number, date, status, total and a View button — the same table WooCommerce shows under My Account > Orders.

Usage:

[show_wc_orders] shows all of the customer's orders.
[show_wc_orders order_count=10] shows the 10 most recent orders — replace 10 with any number.

That is all. There are no settings.

Details:

  • Each visitor only ever sees their own orders. Logged-out visitors see nothing.
  • The table is rendered through WooCommerce’s own My Account orders template, so your theme’s styling — and any theme override or column filter you already use for My Account — applies to the shortcode too.
  • Works with both classic order storage and High-Performance Order Storage (HPOS).

스크린샷

The customer's orders on a regular page — same table as My Account > Orders.
The customer’s orders on a regular page — same table as My Account > Orders.
Limiting the output with order_count.
Limiting the output with order_count.
The shortcode in the block editor.
The shortcode in the block editor.

설치

  1. Upload the plugin files to the /wp-content/plugins/wc-show-orders-shortcode directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Add [show_wc_orders] to any page or post.

FAQ

Which orders are shown?

The orders of the currently logged-in customer, newest first. Logged-out visitors see nothing — there is no way to view another customer’s orders through this shortcode.

The table was empty on my store — is that fixed?

Yes. Version 1.1.0 read orders from the legacy post storage, so on stores using High-Performance Order Storage (the WooCommerce default since 8.2) it rendered nothing. 1.2.0 queries orders through the storage-agnostic WooCommerce API and works on both storage modes.

Can I change the columns or styling?

The shortcode renders WooCommerce’s own myaccount/orders.php template. Anything that customises the My Account orders table — a theme override of that template, or the woocommerce_account_orders_columns filter — applies here as well.

Is there pagination?

No. The shortcode shows the order_count most recent orders (all orders by default). For a paginated order history, point customers at My Account > Orders.

Can I show a login prompt to logged-out visitors instead of nothing?

Not yet — the shortcode intentionally outputs nothing for guests. If you need this, ask in the support forum.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Show Orders Shortcode for WooCommerce”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자
  • con

자국어로 “Show Orders Shortcode for WooCommerce”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

1.2.0

  • Fix: orders display again on stores using High-Performance Order Storage (HPOS, the WooCommerce default since 8.2). 1.1.0 queried the legacy post storage and rendered an empty page there.
  • Improvement: the shortcode now renders the same orders table as My Account > Orders (myaccount/orders.php) instead of a template deprecated since WooCommerce 2.6 — theme overrides and column filters for My Account now apply to the shortcode too.
  • Fix: no PHP fatal error when WooCommerce is deactivated while the shortcode is still in page content.
  • Hardening: pages are excluded from page caching whenever the table renders (the same DONOTCACHEPAGE protection WooCommerce applies to My Account) — this customer-specific output must never enter a shared page cache.
  • Hardening: refund records can never appear in the table; invalid order_count values fall back to showing all orders; woocommerce_my_account_my_orders_query filter callbacks can no longer break the shortcode’s count or crash the page.
  • The “Recent orders” heading and its woocommerce_my_account_my_orders_title filter are preserved from 1.1.0.
  • Note: the table markup now uses WooCommerce’s current classes (woocommerce-orders-table__cell-...). Custom CSS written against the old bare cell classes (.order-number etc.) may need updating.
  • Compatibility with High-Performance Order Storage declared; WooCommerce dependency declared via Requires Plugins.
  • Housekeeping: License and Text Domain headers, updated minimum versions (WordPress 6.5, PHP 7.4, WooCommerce 9.5).

1.1.0

Added control statement to check for logged in status.

1.0.0

Initial release.

기초

  • 버전 1.2.0
  • 최근 업데이트: 2주 전
  • 활성화된 설치 100+
  • 워드프레스 버전 6.5 또는 그 이상
  • 다음까지 시험됨: 7.0.2
  • PHP 버전 7.4 또는 그 이상
  • 언어
    English (US)
  • 태그:
    My accountorder historyordersshortcodewoocommerce
  • 고급 보기

평점

아직 제출된 리뷰가 없습니다.

Your review

모든 리뷰 보기

기여자

  • con

지원

할 말 있으신가요? 도움이 필요하신가요?

지원 포럼 보기

  • 소개
  • 뉴스
  • 호스팅
  • 개인정보
  • 쇼케이스
  • 테마
  • 플러그인
  • 패턴
  • 배우기
  • 지원
  • 개발자 도구
  • WordPress.tv ↗
  • 참여하기
  • 이벤트
  • 기부하기 ↗
  • 미래를 위한 5가지
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

한국어

  • X(이전 트위터) 계정 방문하기
  • 블루스카이 계정 방문하기
  • 마스토돈 계정 방문하기
  • 스레드 계정 방문하기
  • 페이스북 페이지 방문하기
  • 인스타그램 계정 방문하기
  • LinkedIn 계정 방문하기
  • 틱톡 계정 방문하기
  • 유튜브 채널 방문하기
  • 텀블러 계정 방문하기
코드는 詩다
The WordPress® trademark is the intellectual property of the WordPress Foundation.