Display Last Order Details


Shows all relevant information from the last order placed by this logged-in user.
– Order #ID
– Order Status (Processing, Complete, etc.)
– Order Payment Gateway Used
– Each Product Featured Image
– Each Product Name
– Each Product Quantity
– Each Product Price Paid
– Each Product Purchase Note (if one exists)
– Order Total


Use Case:

Add the [lf-last-order] shortcode to any thank you page or other page that follows immediately after a checkout or before the buyer would otherwise purchase another product. This function only displays the last order placed.

If you would like to show the user all orders, other than last one made, it is recommended that you use the following WooCommerce endpoint within a button or text link:

To show ALL orders, use this URL (endpoint) in any button, link or clickable element: