Thank You Page for WooCommerce PRO – Rules Page Documentation
The Rules Page in the Thank You Page for WooCommerce PRO plugin allows you to create dynamic rules to customize and control the Thank You page redirection based on specific order details. This gives store owners the flexibility to define custom experiences for their customers based on various order attributes such as products, categories, user roles, payment methods, and more.Overview
This page provides the ability to set conditional rules for redirecting customers to a specific Thank You page after they complete a purchase. Each rule is built by combining conditions, such as products bought, user roles, or payment methods, to determine where customers are redirected.Key Sections and Settings
1. Page URL
- Description: This is the URL where customers will be redirected if all the conditions in the rule are met.
- How to Use:
- You can either select a predefined Thank You page from the dropdown list or manually enter a custom URL.
- Example:
http://neebplugins.local/product-thank-you/
- Recommendation: Ensure the URL is valid and points to an existing page that provides a good post-purchase experience for your customers.
2. Conditions
Conditions allow you to specify the criteria that must be met for a customer to be redirected to the defined Thank You page. You can add multiple conditions, and they are evaluated together to determine if the rule should be applied.a) Product
- Description: This condition is used to include or exclude customers based on specific products they purchased.
- How to Use:
- Select “Product” from the dropdown.
- Choose whether the rule “Includes” or “Excludes” the selected products.
- Use the field on the right to add specific products.
- Example: “Includes Cap” – this rule applies if the customer has purchased a Cap.
b) Product Variation
- Description: This condition targets specific product variations, such as size or color, within a product.
- How to Use:
- Select “Product Variation” from the dropdown.
- Choose whether the rule “Includes” or “Excludes” the selected variation.
- Enter or search for specific product variations.
- Example: “Includes Hoodie – Red, No” – this applies if the customer bought a red variation of a hoodie with a specific option.
c) Product Category
- Description: Allows redirection based on the category of the product the customer purchased.
- How to Use:
- Select “Product Category” from the dropdown.
- Choose whether the rule “Includes” or “Excludes” specific categories.
- Enter the categories in the field.
- Example: “Includes Clothing” – applies if the purchased products fall under the Clothing category.
d) Product Tag
- Description: This condition can redirect customers based on product tags applied to the purchased products.
- How to Use:
- Select “Product Tag” from the dropdown.
- Choose whether the rule “Includes” or “Excludes” specific product tags.
- Add product tags in the field.
- Example: “Includes Material” – applies if the purchased products are tagged with ‘Material.’
e) User Role
- Description: This condition allows you to set redirection based on the role of the customer (e.g., Shop manager, Subscriber).
- How to Use:
- Select “User Role” from the dropdown.
- Choose whether the rule “Includes” or “Excludes” specific user roles.
- Enter the user role.
- Example: “Includes Shop manager” – applies if the user making the purchase has the ‘Shop manager’ role.
f) Payment Method
- Description: Allows you to specify a Thank You page redirection based on the payment method used.
- How to Use:
- Select “Payment Method” from the dropdown.
- Choose whether the rule “Includes” or “Excludes” specific payment methods.
- Select or search for payment methods like PayPal, Stripe, Cash on Delivery, etc.
- Example: “Includes Cash on delivery” – applies if the customer chose Cash on Delivery as their payment method.
3. Add Condition
- Description: This button allows you to add more conditions to your current rule. You can create complex rules by combining multiple conditions.
- How to Use:
- Click the Add Condition button to create another condition in the rule.
- Each condition can be combined with others using logical operators (AND/OR).
4. AND/OR Condition Selector
- Description: This dropdown appears when multiple conditions are added. It allows you to define whether the conditions should be evaluated using the AND or OR logic.
- How to Use:
- AND: All conditions must be met for the rule to apply.
- OR: At least one condition must be met for the rule to apply.
5. Add New Rule
- Description: Allows you to create a new rule with a different set of conditions and a different Thank You page.
- How to Use:
- Click the Add New Rule button to create a fresh rule setup.
- Each rule operates independently and can target different sets of conditions and customers.
6. Delete Rule or Condition
- Description: If you wish to remove a rule or a specific condition within a rule, you can click the trash icon to delete it.
- How to Use:
- Click the trash icon next to a condition or rule to remove it from the current setup.
- Note: Be careful when deleting rules or conditions as this may alter your redirection logic.
7. Save Changes
- Description: Once you have created or updated your rules, click the Save Changes button to ensure all changes are applied.
- How to Use:
- After configuring all your rules and conditions, click Save Changes to save your customizations.
Example Rule Setup
Let’s assume you want to create a rule that redirects customers to a specific page based on their product and payment method. You could configure a rule like this:- Page URL:
http://neebplugins.local/product-thank-you/
- Conditions:
- Product: Includes “Cap”
- Payment Method: Includes “Cash on delivery”
- AND/OR Selector: Select AND
- Add New Rule if you want to create a separate rule for different conditions.
http://neebplugins.local/product-thank-you/
upon completing their order.Best Practices for Creating Rules
- Simple Rules First: Start by creating simple rules and test how they work before adding more complex conditions.
- Prioritize Important Conditions: Focus on conditions that align with your business goals, such as rewarding specific customers or targeting certain product categories.
- Avoid Overlapping Rules: Make sure your rules do not conflict or overlap, as this may cause unintended redirection behavior.
- Test Each Rule: After creating a rule, test it by completing an order to ensure customers are redirected correctly based on the conditions.
This concludes the detailed documentation for the Thank You Page Rules in the Thank You Page for WooCommerce PRO plugin. By using these flexible rules, you can create tailored post-purchase experiences for your customers based on their specific order attributes.