How to Access the Order Link for Guest Orders in WooCommerce
When a customer completes a purchase without creating an account, WooCommerce generates a guest order — a transaction tied to an email address rather than a registered user profile. This creates a specific challenge: how does that guest (or the store admin) later access the order details page?
Understanding how WooCommerce handles guest order access helps both store owners troubleshoot customer issues and developers configure the right setup for their store.
What Is a Guest Order Link in WooCommerce?
Every WooCommerce order — whether placed by a registered customer or a guest — gets a unique order ID and a corresponding order details URL. For logged-in customers, this page is accessible through their "My Account" dashboard. For guests, it's different.
WooCommerce uses a order key system for guest access. This is a hashed token appended to the order URL, giving anonymous access to that specific order without requiring a login. The URL typically follows this structure:
https://yourstore.com/my-account/view-order/{order-id}/?key={order-key} This link is automatically included in the order confirmation email sent to the guest at the time of purchase. It's the primary — and most reliable — way a guest retrieves their order details.
How the Guest Order Link Is Delivered
When a guest completes checkout, WooCommerce triggers the "Customer order" email (also called the new order confirmation). Embedded in that email is a direct link to the order details page. That link contains both the order ID and the unique order key.
Key things to know about this link:
- It does not require the customer to log in or create an account
- It's valid as long as the order exists in your database
- The order key is generated at the time the order is created and does not expire by default
- Resending the email from the admin panel will resend the same valid link
If the guest lost or never received the email, the link still exists — it just needs to be retrieved another way.
How to Find the Guest Order Link as a Store Admin
Store admins can locate and manually share a guest order link directly from the WooCommerce dashboard. 🔍
Steps:
- Go to WooCommerce → Orders in your WordPress admin
- Search for the order by customer email, name, or order number
- Open the order detail page
- Look at the browser's address bar — the URL will contain the order ID (e.g.,
/post.php?post=1234) - To construct the customer-facing link, note the Order Key displayed in the order data panel (labeled "Key" or found under order meta)
- Build the URL:
https://yourstore.com/my-account/view-order/1234/?key=wc_order_abc123xyz
Alternatively, resending the order confirmation email is often the faster approach. Navigate to the order, scroll to the Order Actions panel on the right, select "Resend new order notification" or "Resend order details to customer," and click Update.
Where the Order Key Actually Lives
The order key is stored in the WordPress database under the order's post meta with the key _order_key. If you have database access or are building a custom integration, you can retrieve it programmatically using:
$order = wc_get_order( $order_id ); $order_key = $order->get_order_key(); This is useful for custom email templates, third-party integrations, or scenarios where you're building a manual notification workflow.
Variables That Affect How This Works in Practice
Not every WooCommerce setup behaves identically. Several factors influence how guest order links function: ⚙️
| Variable | Impact on Guest Order Access |
|---|---|
| Custom "My Account" page slug | Changes the base URL of the order link |
| HPOS (High-Performance Order Storage) | Order data stored differently; link structure may vary slightly |
| Caching plugins | Can occasionally interfere with order key validation |
| Custom checkout plugins | May alter order creation flow or email triggers |
| Email deliverability issues | Guest never receives the link in the first place |
| Third-party order management plugins | May use their own link or portal system |
Stores running WooCommerce with High-Performance Order Storage (HPOS) enabled — a newer default in more recent WooCommerce versions — store orders in custom tables rather than wp_posts. The order key mechanism still works, but how you retrieve it programmatically or via database queries may differ from older setups.
What Guests Can See on the Order Page
When a guest successfully accesses their order via the keyed URL, they can typically view:
- Order status and history
- Items purchased and quantities
- Billing and shipping address
- Payment method used
- Totals and any applied coupons
They cannot manage subscriptions, request returns through an account portal, or access previous orders — all of that requires account creation. Some stores address this with a "Create account from guest order" prompt on the order page.
When the Link Doesn't Work
If clicking the guest order link returns an error or shows no order, common causes include:
- The order was deleted — the link becomes permanently invalid
- The order key in the URL is malformed — often caused by email clients breaking long URLs across lines
- A plugin conflict — particularly with security or firewall plugins that flag the
keyparameter - Wrong store URL — if the store has migrated domains without updating links 🛠️
In these cases, admins can manually reconstruct the correct link from the WooCommerce orders panel as described above.
How straightforward this process is depends heavily on your specific WooCommerce version, your theme's "My Account" page configuration, whether you're using HPOS, and what email infrastructure your store relies on. A default WooCommerce install with no heavy customization makes this fairly simple — but the more layers your store has, the more places the expected behavior can diverge.