View Order Link outside of order?
-
I know how to get and place the “view order” link onto various places within an order status page or email…but what about outside of those scenarios? I sell custom graphic designs for printing and have created a custom post type to generate preview pages for approvals. I’d like to include a link back to their order. I know I could just use a custom field and past that in, but I’d like to see if there is a more automatic and elegant solution.
I use the order number as the page slug. Ideally, it’d be awesome if I could just call that page slug and have it create a link back to the order. The order numbers are nowhere in the order page URL…so it isn’t as easy as outputting it like that. Can anyone think of something that would work? My goal is to make these preview/approval pages as automatic as possible.
- The topic ‘View Order Link outside of order?’ is closed to new replies.