WRAC Global Redirect User

Overview

The Global Redirect by User Details feature allows store owners to create targeted post-checkout experiences based on customer roles and specific user accounts. This powerful functionality enables you to:

  • Create different thank you pages for different user roles (wholesale, retail, VIP)
  • Provide personalized experiences for specific customers
  • Customize the post-purchase journey based on customer type or status
  • Create unique paths for different user segments in your store

How to Set Up User Details-Based Redirects

1. Accessing the User Details Settings

  1. Navigate to WooCommerce > WRAC Redirect
  2. Go to the Global Redirects tab
  3. Click on the User Details option in the left sidebar menu

2. Enabling User Details Redirects

  1. Find the “Enable or Disable” toggle
  2. Turn it On to activate user details-based redirects
  3. This enables the “Turn On to create redirect based on selected user details Role || IDs” feature

3. Configuring User Role Redirects

You can redirect customers based on their WordPress user role:

  1. Click on the “Select User Role” dropdown
  2. Choose a specific user role (e.g., “Customer,” “Administrator,” “Shop Manager,” “Wholesale Customer”)
  3. This sets the user role to be used in the redirect logic

4. Configuring Specific User Redirects

You can also redirect specific users based on their account IDs:

Method A: Manual ID Entry

  1. In the “Add User IDs” field:
    • Enter comma-separated user IDs (e.g., “12,45,67”)
    • To find user IDs:
      • Go to Users in WordPress
      • Hover over a user and check the URL for “user=XX” (the number is the ID)

Method B: Visual User Selector

  1. Click the Select Users By Ids button
  2. A popup will appear showing your registered users
  3. Check the boxes for users you want to include
  4. Click “Done” to confirm your selection

5. Setting the Redirect Destination

Choose where users will be redirected based on the role or ID conditions:

Internal Page Redirect

  1. From the “Select Redirect Page” dropdown:
    • Choose an existing page (e.g., “/wholesale-thank-you”, “/vip-customer-portal”)
    • This page will display for users matching your selected role or IDs

External URL Redirect

  1. In the “Use External URL” field:

6. Failed Order Handling

Configure where customers go if payment fails:

  1. “Failed Order Redirect Page” – Select an internal page from the dropdown
  2. “Failed Order External URL” – Enter an external URL for failed orders

7. Save Your Configuration

  1. Click the Save Settings button at the bottom of the page
  2. Your user details redirect rules are now active

How It Works

When a customer completes checkout:

  1. The plugin checks if their user role matches the one you specified
  2. If using user IDs, it checks if the customer’s ID is in your list
  3. If there’s a match (either role or ID), they are redirected to your custom thank you page or external URL
  4. If there’s no match, they follow the standard checkout completion flow
  5. If the order fails, they are directed to your specified failed order page

Practical Examples

  1. Wholesale Customer Experience
    • User Role: “Wholesale_Customer” (or your custom wholesale role)
    • Redirect to: “/wholesale-thank-you” with reordering options and account manager details
  2. VIP Customer Treatment
    • Specific User IDs: IDs of your VIP customers
    • Redirect to: A page with exclusive offers, early access to new products, or premium support options
  3. B2B vs. B2C Separation
    • User Role: “Business_Customer” for B2B
    • Redirect to: Different pages with appropriate invoicing information and business resources

Advanced Use Cases

Membership Site Integration

For membership sites:

  • Redirect different membership levels to tier-specific resources
  • Provide level-appropriate downloads or next steps

Customer Onboarding

For new customers:

  • Create a special role for first-time buyers
  • Redirect to an onboarding page with account setup guidance and next steps

Geo-Targeted Experiences

Combined with geo-location plugins:

  • Create roles based on customer location
  • Redirect to region-specific thank you pages with local information

Troubleshooting

  • If redirects aren’t working, ensure the toggle is set to “On”
  • Verify that you’ve selected the correct user role from the dropdown
  • Check that user IDs are entered correctly and belong to active accounts
  • Ensure your selected redirect page exists and is published
  • For external URLs, confirm they include “https://” prefix
  • Remember that guests (users who checkout without creating an account) won’t have a user role or ID

Best Practices

  • Create clear, role-specific content on your redirect pages
  • Consider the customer journey for each user type
  • For wholesale or B2B customers, include reordering information and account manager contacts
  • For VIP customers, highlight exclusive benefits and premium support options
  • Test each user role flow while logged in as different user types
  • Remember to update your redirect pages when changing product offerings or policies

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.