{"id":86,"date":"2025-05-16T10:39:48","date_gmt":"2025-05-16T10:39:48","guid":{"rendered":"https:\/\/njengah.com\/docs\/?post_type=ht_kb&#038;p=86"},"modified":"2025-05-16T10:39:48","modified_gmt":"2025-05-16T10:39:48","slug":"wrac-global-redirect-user","status":"publish","type":"ht_kb","link":"https:\/\/njengah.com\/docs\/knowledge-base\/wrac-global-redirect-user\/","title":{"rendered":"WRAC Global Redirect User"},"content":{"rendered":"<h2 id=\"_\" ><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-87\" src=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Details.png\" alt=\"\" width=\"1021\" height=\"891\" srcset=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Details.png 1021w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Details-300x262.png 300w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Details-768x670.png 768w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Details-50x44.png 50w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Details-920x803.png 920w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Details-600x524.png 600w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Details-320x279.png 320w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/><\/h2>\n<h2 id=\"overview\" ><strong>Overview<\/strong><\/h2>\n<p class=\"whitespace-normal\">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:<\/p>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Create different thank you pages for different user roles (wholesale, retail, VIP)<\/li>\n<li class=\"whitespace-normal break-words\">Provide personalized experiences for specific customers<\/li>\n<li class=\"whitespace-normal break-words\">Customize the post-purchase journey based on customer type or status<\/li>\n<li class=\"whitespace-normal break-words\">Create unique paths for different user segments in your store<\/li>\n<\/ul>\n<h2 class=\"text-xl font-bold text-text-100 mt-1 -mb-0.5\" id=\"how-to-set-up-user-details-based-redirects\" ><strong>How to Set Up User Details-Based Redirects<\/strong><\/h2>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"1-accessing-the-user-details-settings\" >1. Accessing the User Details Settings<\/h3>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Navigate to <strong>WooCommerce &gt; WRAC Redirect<\/strong><\/li>\n<li class=\"whitespace-normal break-words\">Go to the <strong>Global Redirects<\/strong> tab<\/li>\n<li class=\"whitespace-normal break-words\">Click on the <strong>User Details<\/strong> option in the left sidebar menu<\/li>\n<\/ol>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"2-enabling-user-details-redirects\" >2. Enabling User Details Redirects<\/h3>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Find the &#8220;Enable or Disable&#8221; toggle<\/li>\n<li class=\"whitespace-normal break-words\">Turn it <strong>On<\/strong> to activate user details-based redirects<\/li>\n<li class=\"whitespace-normal break-words\">This enables the &#8220;Turn On to create redirect based on selected user details Role || IDs&#8221; feature<\/li>\n<\/ol>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"3-configuring-user-role-redirects\" >3. Configuring User Role Redirects<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-88\" src=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Role.png\" alt=\"\" width=\"1050\" height=\"676\" srcset=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Role.png 1050w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Role-300x193.png 300w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Role-1024x659.png 1024w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Role-768x494.png 768w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Role-50x32.png 50w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Role-920x592.png 920w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Role-600x386.png 600w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-Role-320x206.png 320w\" sizes=\"auto, (max-width: 1050px) 100vw, 1050px\" \/><\/p>\n<p class=\"whitespace-normal\">You can redirect customers based on their WordPress user role:<\/p>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Click on the &#8220;Select User Role&#8221; dropdown<\/li>\n<li class=\"whitespace-normal break-words\">Choose a specific user role (e.g., &#8220;Customer,&#8221; &#8220;Administrator,&#8221; &#8220;Shop Manager,&#8221; &#8220;Wholesale Customer&#8221;)<\/li>\n<li class=\"whitespace-normal break-words\">This sets the user role to be used in the redirect logic<\/li>\n<\/ol>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"4-configuring-specific-user-redirects\" >4. Configuring Specific User Redirects<\/h3>\n<p class=\"whitespace-normal\">You can also redirect specific users based on their account IDs:<\/p>\n<p class=\"whitespace-normal\"><strong>Method A: Manual ID Entry<\/strong><\/p>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">In the &#8220;Add User IDs&#8221; field:\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Enter comma-separated user IDs (e.g., &#8220;12,45,67&#8221;)<\/li>\n<li class=\"whitespace-normal break-words\">To find user IDs:\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Go to <strong>Users<\/strong> in WordPress<\/li>\n<li class=\"whitespace-normal break-words\">Hover over a user and check the URL for &#8220;user=XX&#8221; (the number is the ID)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-89\" src=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-ID-or-Specific-User.png\" alt=\"\" width=\"1062\" height=\"665\" srcset=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-ID-or-Specific-User.png 1062w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-ID-or-Specific-User-300x188.png 300w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-ID-or-Specific-User-1024x641.png 1024w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-ID-or-Specific-User-768x481.png 768w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-ID-or-Specific-User-50x31.png 50w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-ID-or-Specific-User-920x576.png 920w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-ID-or-Specific-User-600x376.png 600w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/6_Global_Redirect-by-User-ID-or-Specific-User-320x200.png 320w\" sizes=\"auto, (max-width: 1062px) 100vw, 1062px\" \/><\/p>\n<p class=\"whitespace-normal\"><strong>Method B: Visual User Selector<\/strong><\/p>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Click the <strong>Select Users By Ids<\/strong> button<\/li>\n<li class=\"whitespace-normal break-words\">A popup will appear showing your registered users<\/li>\n<li class=\"whitespace-normal break-words\">Check the boxes for users you want to include<\/li>\n<li class=\"whitespace-normal break-words\">Click &#8220;Done&#8221; to confirm your selection<\/li>\n<\/ol>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"5-setting-the-redirect-destination\" >5. Setting the Redirect Destination<\/h3>\n<p class=\"whitespace-normal\">Choose where users will be redirected based on the role or ID conditions:<\/p>\n<p class=\"whitespace-normal\"><strong>Internal Page Redirect<\/strong><\/p>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">From the &#8220;Select Redirect Page&#8221; dropdown:\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Choose an existing page (e.g., &#8220;\/wholesale-thank-you&#8221;, &#8220;\/vip-customer-portal&#8221;)<\/li>\n<li class=\"whitespace-normal break-words\">This page will display for users matching your selected role or IDs<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p class=\"whitespace-normal\"><strong>External URL Redirect<\/strong><\/p>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">In the &#8220;Use External URL&#8221; field:\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Enter a full URL (e.g., &#8220;<a class=\"underline\" href=\"https:\/\/wholesale.example.com\/thanks\">https:\/\/wholesale.example.com\/thanks<\/a>&#8220;)<\/li>\n<li class=\"whitespace-normal break-words\">Use external URL to redirect customers after successful purchase<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"6-failed-order-handling\" >6. Failed Order Handling<\/h3>\n<p class=\"whitespace-normal\">Configure where customers go if payment fails:<\/p>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">&#8220;Failed Order Redirect Page&#8221; &#8211; Select an internal page from the dropdown<\/li>\n<li class=\"whitespace-normal break-words\">&#8220;Failed Order External URL&#8221; &#8211; Enter an external URL for failed orders<\/li>\n<\/ol>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"7-save-your-configuration\" >7. Save Your Configuration<\/h3>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Click the <strong>Save Settings<\/strong> button at the bottom of the page<\/li>\n<li class=\"whitespace-normal break-words\">Your user details redirect rules are now active<\/li>\n<\/ol>\n<h2 class=\"text-xl font-bold text-text-100 mt-1 -mb-0.5\" id=\"how-it-works\" >How It Works<\/h2>\n<p class=\"whitespace-normal\">When a customer completes checkout:<\/p>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">The plugin checks if their user role matches the one you specified<\/li>\n<li class=\"whitespace-normal break-words\">If using user IDs, it checks if the customer&#8217;s ID is in your list<\/li>\n<li class=\"whitespace-normal break-words\">If there&#8217;s a match (either role or ID), they are redirected to your custom thank you page or external URL<\/li>\n<li class=\"whitespace-normal break-words\">If there&#8217;s no match, they follow the standard checkout completion flow<\/li>\n<li class=\"whitespace-normal break-words\">If the order fails, they are directed to your specified failed order page<\/li>\n<\/ol>\n<h2 class=\"text-xl font-bold text-text-100 mt-1 -mb-0.5\" id=\"practical-examples\" >Practical Examples<\/h2>\n<ol class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\"><strong>Wholesale Customer Experience<\/strong>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">User Role: &#8220;Wholesale_Customer&#8221; (or your custom wholesale role)<\/li>\n<li class=\"whitespace-normal break-words\">Redirect to: &#8220;\/wholesale-thank-you&#8221; with reordering options and account manager details<\/li>\n<\/ul>\n<\/li>\n<li class=\"whitespace-normal break-words\"><strong>VIP Customer Treatment<\/strong>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Specific User IDs: IDs of your VIP customers<\/li>\n<li class=\"whitespace-normal break-words\">Redirect to: A page with exclusive offers, early access to new products, or premium support options<\/li>\n<\/ul>\n<\/li>\n<li class=\"whitespace-normal break-words\"><strong>B2B vs. B2C Separation<\/strong>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">User Role: &#8220;Business_Customer&#8221; for B2B<\/li>\n<li class=\"whitespace-normal break-words\">Redirect to: Different pages with appropriate invoicing information and business resources<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 class=\"text-xl font-bold text-text-100 mt-1 -mb-0.5\" id=\"advanced-use-cases\" >Advanced Use Cases<\/h2>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"membership-site-integration\" >Membership Site Integration<\/h3>\n<p class=\"whitespace-normal\">For membership sites:<\/p>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Redirect different membership levels to tier-specific resources<\/li>\n<li class=\"whitespace-normal break-words\">Provide level-appropriate downloads or next steps<\/li>\n<\/ul>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"customer-onboarding\" >Customer Onboarding<\/h3>\n<p class=\"whitespace-normal\">For new customers:<\/p>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Create a special role for first-time buyers<\/li>\n<li class=\"whitespace-normal break-words\">Redirect to an onboarding page with account setup guidance and next steps<\/li>\n<\/ul>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"geo-targeted-experiences\" >Geo-Targeted Experiences<\/h3>\n<p class=\"whitespace-normal\">Combined with geo-location plugins:<\/p>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Create roles based on customer location<\/li>\n<li class=\"whitespace-normal break-words\">Redirect to region-specific thank you pages with local information<\/li>\n<\/ul>\n<h2 class=\"text-xl font-bold text-text-100 mt-1 -mb-0.5\" id=\"troubleshooting\" >Troubleshooting<\/h2>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">If redirects aren&#8217;t working, ensure the toggle is set to &#8220;On&#8221;<\/li>\n<li class=\"whitespace-normal break-words\">Verify that you&#8217;ve selected the correct user role from the dropdown<\/li>\n<li class=\"whitespace-normal break-words\">Check that user IDs are entered correctly and belong to active accounts<\/li>\n<li class=\"whitespace-normal break-words\">Ensure your selected redirect page exists and is published<\/li>\n<li class=\"whitespace-normal break-words\">For external URLs, confirm they include &#8220;https:\/\/&#8221; prefix<\/li>\n<li class=\"whitespace-normal break-words\">Remember that guests (users who checkout without creating an account) won&#8217;t have a user role or ID<\/li>\n<\/ul>\n<h2 class=\"text-xl font-bold text-text-100 mt-1 -mb-0.5\" id=\"best-practices\" >Best Practices<\/h2>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7\">\n<li class=\"whitespace-normal break-words\">Create clear, role-specific content on your redirect pages<\/li>\n<li class=\"whitespace-normal break-words\">Consider the customer journey for each user type<\/li>\n<li class=\"whitespace-normal break-words\">For wholesale or B2B customers, include reordering information and account manager contacts<\/li>\n<li class=\"whitespace-normal break-words\">For VIP customers, highlight exclusive benefits and premium support options<\/li>\n<li class=\"whitespace-normal break-words\">Test each user role flow while logged in as different user types<\/li>\n<li class=\"whitespace-normal break-words\">Remember to update your redirect pages when changing product offerings or policies<\/li>\n<\/ul>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"ht_kb_category":[7],"ht_kb_tag":[],"class_list":["post-86","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-wrac-global"],"_links":{"self":[{"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":1,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb\/86\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb\/86\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb_category?post=86"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb_tag?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}