Custom Thank You Pages
Set custom thank-you pages based on products or payment gateway rules with priority.
by Maxi Tromer · github.com/maxitromer/custom-thank-you-pages · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/maxitromer/custom-thank-you-pages/archive/refs/heads/main.zipCustom Thank You Pages for WooCommerce
A WordPress plugin that allows you to set custom thank you pages for WooCommerce based on specific products or payment gateways with priority rules.
Features
- Create multiple thank you page rules
- Set rules based on specific products
- Set rules based on payment gateways
- Priority-based rule system
- Includes useful shortcodes for order information
- Easy to configure through WooCommerce settings
Installation
- Download the plugin zip file
- Go to WordPress Admin > Plugins > Add New
- Click "Upload Plugin" and select the downloaded zip file
- Click "Install Now"
- Activate the plugin
Configuration
- Navigate to WooCommerce > Custom Thank You Pages in your WordPress admin
- Click "Add Rule" to create a new thank you page rule
- For each rule, you can set:
- Product (specific product or any product)
- Payment Gateway (specific gateway or any gateway)
- Thank You Page URL (the destination URL)
- Priority (higher number = higher priority)
- Click "Save Changes" to apply your rules
Available Shortcodes
Use these shortcodes in your custom thank you pages:
[custom_thank_you_order]- Displays the order ID[custom_thank_you_customer_first_name]- Shows customer's first name[custom_thank_you_customer_last_name]- Shows customer's last name[custom_thank_you_customer_email]- Shows customer's email[custom_thank_you_order_details]- Lists ordered products and quantities
Example Use Cases
- Different thank you pages for digital vs physical products
- Custom thank you pages based on payment methods
- Special thank you pages for specific premium products
- Default thank you page for all other scenarios
Notes
- Rules are processed in order of priority (highest to lowest)
- At least one rule should be configured for the plugin to work
- Make sure the thank you page URLs are valid and accessible
- Compatible with WooCommerce 3.0 and above