WRAC Create Conditional Redirect

Overview

The “Add New Redirect Condition” form allows you to create sophisticated, rule-based redirects that trigger only when specific conditions are met during checkout. This guide walks you through each section of the form to help you create effective conditional redirects for your WooCommerce store.

Accessing the Add New Redirect Form

  1. Navigate to WooCommerce > WRAC Redirect
  2. Click on the “Conditional Redirects” tab
  3. Click the “Add New Redirect” button
  4. The “Add New Redirect Condition” form will appear

Form Sections and Fields

Basic Rule Information

Enable or Disable

  • Toggle the purple switch to enable your rule
  • New rules are disabled by default until you’re ready to activate them
  • You can come back later to enable/disable rules without recreating them

Redirect Name

  • Enter a clear, descriptive name for your redirect rule
  • This name is for your reference only and will appear in your list of rules
  • Example: “Product X Redirect to Thank You Page Y”
  • Best practice: Use names that describe both the condition and the destination

Redirect Description

  • Add a detailed description of what this rule does
  • Include information about which products, customers, or scenarios it applies to
  • Example: “This rule redirects product X to Thank You Page Y”
  • This description helps team members understand the rule’s purpose

Redirect Conditions

This section defines WHEN your redirect will trigger. You can add multiple conditions to create sophisticated targeting.

Adding Conditions

  1. Click the “+ Add Condition” button
  2. A new condition row will appear with three dropdown selectors:
    • Condition Type: Select what aspect of the order to evaluate
    • Operator: How to evaluate (includes, equals, etc.)
    • Value: What specific value to look for

Available Condition Types

The condition types are organized in categories:

General

  • Product: Redirect based on specific products in cart
  • Product Category: Redirect based on product categories
  • Shipping Method: Redirect based on customer’s shipping choice

Geo Location

  • Country (Billing Address): Target customers from specific countries

Payments

  • Payment Method: Create different experiences based on payment option

User

  • User Role: Different paths for different customer types

Price, Discounts, Coupons

  • Coupon Code: Trigger redirects when specific coupons are used

Condition Operators

  • Includes: The order contains the selected item
  • Equals: The order exactly matches the condition
  • Does not include: The order does not contain the selected item
  • (Additional operators may be available depending on the condition type)

Multiple Conditions

  • Add multiple conditions by clicking “+ Add Condition” again
  • You can create complex rules using multiple conditions
  • All conditions must be met for the redirect to trigger
  • Use “Delete [Selected]” to remove unwanted conditions

Redirect Actions

This section defines WHERE customers will be redirected when conditions are met.

Adding Actions

  1. Click the “+ Add Action” button
  2. Configure where successful and failed orders should redirect
  3. You can choose internal pages or external URLs for both scenarios

Action Types

  • Redirect to Page: Select an internal page on your site
  • Redirect to URL: Enter an external URL
  • Failed Order options: Configure separate destinations for failed orders

 

Time-Based Rule Limitations (Optional)

You can limit when your rule is active by enabling the time range feature.

Enable or Disable Time Range

  • Toggle the switch to enable time-based limitations
  • When disabled, your rule will be active at all times

Select Start Time

  • Click the calendar icon to select a start date
  • Your rule will only be active from this date forward

Select End Time

  • Click the calendar icon to select an end date
  • Your rule will automatically deactivate after this date

Saving Your Rule

  • Click the “Save changes” button at the bottom of the form
  • Your new rule will be added to your list of conditional redirects
  • If you enabled the rule, it will become active immediately
  • If you left it disabled, you can enable it later when ready

Example: Creating a Product-Specific Redirect

Here’s an example of creating a basic product-specific redirect:

  1. Enable the rule using the toggle switch
  2. Name: “T-shirt to Accessories Thank You Page”
  3. Description: “Redirects customers who purchase any t-shirt to a thank you page featuring accessory upsells”
  4. Conditions:
    • Click “+ Add Condition”
    • Select “Product” as the condition type
    • Select “Includes” as the operator
    • Select your t-shirt product from the dropdown
  5. Actions:
    • Click “+ Add Action”
    • Configure the successful order redirect to your accessories page
    • Configure the failed order redirect to your standard error page
  6. Leave time range disabled (unless you want this to be a limited-time offer)
  7. Click “Save changes”

Tips for Creating Effective Conditional Redirects

  • Start simple: Begin with one condition before creating complex rules
  • Use descriptive names: Make rules easy to identify in your list
  • Test thoroughly: Create test orders to verify your rules work as expected
  • Consider mobile experience: Ensure redirect destinations work well on all devices
  • Review regularly: Periodically check if your rules are still relevant
  • Document purpose: Use the description field to document why the rule exists

Troubleshooting

  • If your rule isn’t working, check:
    • Is the rule enabled? (Purple toggle should be on)
    • Are your conditions correct? (Verify product IDs, etc.)
    • Is the time range set correctly? (If enabled)
    • Have you saved changes after making updates?
    • Are there conflicts with Global Redirects? (Disable Global Redirects)

Remember that conditional redirects provide powerful customization for your checkout flow, but they require proper setup to work effectively. Always test your redirects before making them live for customers.

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.