I want make a url like this: www.pagename.com/view-order/999/
and it's shows order details. How can do it without going true my-account/view-roder/999
? if i remove my-account it redirects to /view-order/
You can use the "Order Received URL":
$order->get_checkout_order_received_url()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.