=== Thank You Page for WooCommerce – Custom Thank You Page & Redirect ===
Contributors: nitin247
Author URI: https://www.nitin247.com/
Author: Nitin Prakash
Donate link: https://nitin247.com/buy-me-a-coffee/
Tags: woocommerce thank you page, custom thank you page, woocommerce redirect, order received page, woocommerce custom page
Requires at least: 6.5
Tested up to: 7.0
Stable tag: 4.3.2
Version: 4.3.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Customize your WooCommerce thank you page or redirect customers after checkout to any page or URL—simple, flexible, and tracking-friendly.

== Description ==

Easily customize your WooCommerce Thank You Page with Thank You Page for WooCommerce 🚀
Optimize your post-purchase experience! Redirect WooCommerce customers to custom thank you pages, landing pages, or external URLs—fast, lightweight.
Boost conversions and improve customer retention with Thank You Page for WooCommerce.

By default, WooCommerce shows a basic order confirmation page after checkout. This plugin gives you full control over what your customers see after purchase.

You can redirect customers to a custom page, landing page, or external URL—without breaking your checkout flow or integrations.

✔ Replace default WooCommerce thank you page  
✔ Redirect to any internal or external URL  
✔ Show custom messages and order details  
✔ Create product-specific thank you pages  
✔ Works with tracking tools and checkout plugins  
✔ Does not break WooCommerce checkout flow 

👉 Looking for advanced customization? Check out the PRO version below.

---

💡 Why use this plugin?

The default WooCommerce thank you page is limited.

Many redirect solutions:
❌ Break conversion tracking  
❌ Conflict with checkout plugins  
❌ Lack flexibility  

This plugin solves these problems with a simple and reliable approach.

---

🎯 Common Use Cases

- Send customers to a custom thank you page 
- Send buyers to a high-converting "Next Steps" page. 
- Redirect to course access or download pages  
- Connect with external funnels or landing pages  
- Use shortcodes to display dynamic order details and names
- Show personalized post-purchase messages 
- Display order details using shortcode **[TRFW_ORDER_DETAILS]**

---

⚙️ How it works

1. Create or choose a thank you page  
2. Set it globally or per product  
3. Optionally use shortcode to display order details  

That’s it—your customers will see your custom page after checkout.

---

🚀 Coming Soon

We are actively working on:

- Block-based thank you page builder  
- Pre-designed templates  
- Advanced customization options  

---

Simple to use. Lightweight. Built for flexibility.

---

**Plugin Features**

✔ Global Thank You Page  
Set a default thank you page for all orders (success or failure).

✔ Per Product Redirects  
Define custom thank you pages or URLs for individual products.

✔ Flexible Redirect Options  
Redirect to internal pages or external URLs.

✔ Order Details Shortcode  
Display order details using [TRFW_ORDER_DETAILS].

✔ Multiple Products Support  
Handles orders with multiple products intelligently.

✔ Downloadable Products Support  
Show downloadable product details on thank you page.

✔ Lightweight & Fast  
No heavy builders or unnecessary overhead.

✔ WooCommerce Compatibility  
Works with latest WooCommerce versions.

✔ HPOS Compatible  
Supports High-Performance Order Storage.

✔ PHP 8 Compatible  

✔ Translation Ready  
Supports POT/PO files for localization.

---

**💰 Take Your Thank You Page Further**

The free version gives you full control over redirects and custom pages.

Upgrade to PRO to unlock powerful advanced control:
✔ Advanced targeting rules  
✔ Dynamic personalization  
✔ More flexible thank you page control  

👉 Get PRO Version:
https://nitin247.com/plugin/thank-you-page-for-woocommerce/?utm_source=wp-repo&utm_campaign=readme&utm_medium=cta2

---

**Compatibility**

- Approve Orders for WooCommerce  
- PixelYourSite Facebook  
- GTM DataLayer (Google Analytics)  
- Mollie for WooCommerce  
- Paytrail for WooCommerce  

---

**🚀 Upgrade to PRO for Advanced Control**

Take your WooCommerce thank you pages to the next level.

✔ Advanced Thank You Page Rules  
Create dynamic rules based on product, category, user role, and more.

✔ Payment Gateway Based Pages  
Show different thank you pages based on payment method.

✔ Multisite Support  

✔ Personalization Shortcodes  
Insert dynamic customer and order data easily.

**[TRFW_ORDER_NUMBER]**,**[TRFW_CUSTOMER_FIRST_NAME]**,**[TRFW_CUSTOMER_LAST_NAME]**,**[TRFW_CUSTOMER_EMAIL]**,**[TRFW_CUSTOMER_PHONE_NUMBER]**,**[TRFW_CUSTOMER_DETAILS]**,**[TRFW_ORDER_TOTAL]**,**[TRFW_ORDER_CUSTOMER_NOTES]**,**[TRFW_ORDER_PAYMENT_METHOD]**,**[TRFW_ORDER_DATE]**,**[TRFW_SHIPPING_ADDRESS]**,**[TRFW_GMC_REVIEW_FORM]**

✔ URL Personalization  
Pass customer data via URL parameters.

**[order_number]**,**[billing_first_name]**,**[billing_last_name]**,**[billing_email]**
In the **“Thank You URL”** field in the product? put like this https://site.com/thanks?client_email=[billing_email]

✔ Multilingual Support  
Compatible with **WPML** and **Polylang**.

✔ Modern & Classic Templates  
Choose different layouts for order details.

---

👉 Upgrade Now:
https://nitin247.com/plugin/thank-you-page-for-woocommerce/?utm_source=wp-repo&utm_campaign=readme&utm_medium=cta3

---

For complete documentation, please visit:
https://nitin247.com/docs/thank-you-page/

Learn how to create a WooCommerce thank you page:
https://nitin247.com/how-to-create-woocommerce-thank-you-page/

---

**Credits**
- Developed by https://profiles.wordpress.org/nitin247/
- German Translation by https://profiles.wordpress.org/danielglaas/
- Ukranian Translation by https://profiles.wordpress.org/ingyaroslav/

---

== Installation ==

1. Upload the directory '/wc-thanks-redirect/' to your plugins directory.
2. Activate the plugin from the WordPress dashboard.
3. Go to WooCommerce > Settings > Products > Thank You Page for WooCommerce.
4. Set your custom thank you page or redirect URL.
5. Use shortcode [TRFW_ORDER_DETAILS] to display order details.

---

== Frequently Asked Questions ==

= How do I set a custom thank you page? =

1. Create or edit a WordPress page  
2. Add its URL in plugin settings  
3. Save settings  

---

= Can I redirect to an external website? =

Yes, you can redirect customers to any external URL.

---

= Can I set different pages per product? =

Yes, per-product thank you page settings are supported.

---

= How do I show order details? =

Use shortcode:
[TRFW_ORDER_DETAILS]

---

= Does this plugin support tracking tools? =

Yes, the plugin is designed to work without breaking tracking or checkout flow.

---

= Does it support multilingual? =

Yes, translation files are included.

---

== Screenshots ==

1. Set Global Thank You Page  
2. Set Per Product Thank You Page  
3. Add Order Details using Shortcode  
4. Custom Thank You Page Example  
5. Downloadable Product Details  
6. Redirect Priority Settings  

---

== Changelog ==

**V 4.3.2**
SDK Update
FIX $order->order_key warning
Tested upto WP 7.0

**V 4.3.1**
SDK Update  
Mollie for WooCommerce compatibility  
Paytrail for WooCommerce compatibility  

**V 4.3.0**
Fix Missing File issue
WC Tested upto 10.3

**V 4.2.9**
Package update

**V 4.2.8**
SDK Update
FIX REST Request for WooCommerce

**V 4.2.7**
SandBox Payment Gateway for test payments
FIX per product redirect
PixelYourSite integration indicator

**V 4.2.6**
Compatibility with PixelYourSite Facebook

**V 4.2.5**
GTM Datalayer.
FBQ Track Purchase

**V 4.2.4**
Various fixes.

**V 4.2.3**
AJAX Fix.

**V 4.2.2**
Fix warning.

**V 4.2.1**
SDK updated.

**V 4.2.0**
Documentation updated.

**V 4.1.9**
Code Improvements.

**V 4.1.8**
Bug fixes & improvements.

**V 4.1.7**
SDK Update, FIX fatal error.

**V 4.1.6**
Approve Orders for WooCommerce compatibility added.

**V 4.1.4**
Code Optimizations.

**V 4.1.3**
FIX Order id in multilanguage.

**V 4.1.2**
SDK Update.

**V 4.1.1**
Upgrade URL updated.

**V 4.1.0**
Vulnerability Fix. Replaced order_id with order_key for order details security.

**V 4.0.2**
Fix order details not displayed on thank you page.

**V 4.0.1**
Added setting to enable / disable template redirect hook, to for compatibility with Autocomplete Order for WooCommerce.

**V 4.0.0**
Plugin renamed to "Thank You Page for WooCommerce"

**V 3.1**
Security Fix release

**V 3.0**
Major plugin update with various bug fixes and new features. More features coming very soon.
3.0 a) Various text changes
3.0 b) Bug fix - Redirect to first available Thank You Page if multiple products in WooCommerce Order. This fix the issue if last product does not have a redirect page then it will redirect to first available page.
3.0 c) Language translation is now possible for plugin, you may use POT file for translating the plugin in your language

**V 2.4.1**
Plugin update to support Order Number in order details on Thank You page.

**V 2.4**
Plugin update to support Order Details on Thank You page.

**V 2.3**
Updated plugin name for compliance.

**V 2.2**
Fixed issue with plugin double redirect.

**V 2.1**
Fixed issue with plugin stopped working suddenly.

**V 2.0**
Plugin updated for per product redirect urls.

**V 1.0**
Stable initial release

== Upgrade Notice ==

= 4.3.2 =
SDK Update