Thank you pages can be configured from the ‘Advanced’ section on every product, and the variation settings for each variation. There you’ll have a field where a custom URL can be entered, or searched for any page, post or custom post type.
All fields have a ‘priority’ setting included, which determines the priority in which the thank you page will be picked / showing.
When a variable product has both a thank you page configured in the product and in the variation it will only take the thank you page from the variation, the product one will be ignored. When no specific thank you page is configured for the variation, but there is one for the variable product, it will use that one.
Quick Edit and Bulk Edit
The Custom Thank You Pages for products are also configurable using the well known WordPress quick and bulk edit features.
Purchasing Multiple Products With Custom Thank You Pages
When a customer purchases multiple products that have custom thank you pages configured there are two ways to handle that.
(1) Showing One Thank You Page
The redirect pages are sorted by their priority from low to high. When only wanting to show one thank you page it will show the first in line, so the page with the lowest priority.
(2) Multiple Thank You Pages
There’s also a possibility to show multiple thank you page. In the WooCommerce > Settings > Payments > Thank you pages section there is a setting to enable “Thank you page navigation”. When enabled and multiple products with custom thank you pages configured are purchased it will add a navigation to the top of the thank you page which will allow the customer to navigate between the different thank you pages. These are sorted according to the priority that can be configured individually.
Here’s an example where I’ve purchased two products with different thank you pages and the setting enabled.
Showing Order Details
The following shortcodes can be used to display details of the order;
This shortcode can be used for many different details. The “key” attribute that can be passed determines what will be displayed for the shortcode. The following keys are available:
This displays the standard order details table and details that is used on the default thank you page.
This displays a page switcher when there are multiple thank you pages available. The setting already does this automatically, but if you want to position it somewhere differently you can use this shortcode.