How to setup & redirect customers to a Custom Thank You Page Per Product
This article will explaing how you can setup & redirect your customers to a Custom Thank You Page Per Product instead of default WooCommerce page.
Follow these steps:
Step 1: Create a new or edit any existing Page/Post.
Step 2: Add the content in the editor that you want to show to the customer on the redirected page
Step 3: Add the shortcode
[sa-wc-ctp-order-details] in the content if you want to show the customer their Order details on the redirected page OR select a readymade custom thank you page style as mentioned here and and then click on Update (optional).
Step 4: Copy the permalink of that page
Step 5: Create a new or edit any existing simple, variable, subscription or virtual/downloadable product
Step 6: Go to Product Data -> General -> Thank you page URL
Step 7: Paste the above copied permalink in the Thank you page URL
Step 8: Save the product. That’s it!
Now, once a customer purchases this product, after order completion, they will be redirected to the specified custom Thank You Page.
If the shortcode to show order details was present in the content, then the order details will also be shown to the customer.
Note: Above steps are to be followed if you want to set different Thank you page for different products of your store.
If you want to set a common Thank you page for all products of your store, please refer here – How to setup & redirect customers to a common Custom Thank You Page for all products