How to setup custom “thank you” page properly?

Here is what you need to do to have a custom order received page (thank you page) working with One Click Upsells.

1. Create a simple page, customize it as you wish and insert a  shortcode inside it. This shortcode will display the order details properly.

2. First option: Use our Custom Thank You Pages plugin for WooCommerce that can handle the redirection for you automatically.

Second option: Otherwise, add the code from below to your theme’s functions.php:

This code will perform a redirection from the default /order-received/ thank you page to your custom “thank you” page.

Important: But you need to change the “/your-thank-you-page-slug/” in the code above to the actual slug of your custom thank you page.