{"id":123,"date":"2025-05-16T23:42:40","date_gmt":"2025-05-16T23:42:40","guid":{"rendered":"https:\/\/njengah.com\/docs\/?post_type=ht_kb&#038;p=123"},"modified":"2025-05-16T23:46:32","modified_gmt":"2025-05-16T23:46:32","slug":"wrac-create-geo-location-conditional-redirect","status":"publish","type":"ht_kb","link":"https:\/\/njengah.com\/docs\/knowledge-base\/wrac-create-geo-location-conditional-redirect\/","title":{"rendered":"WRAC Create Geo Location Conditional Redirect"},"content":{"rendered":"<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"overview\" ><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-124\" src=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/7-Conditional-Redirect-By-Geo-Location.png\" alt=\"\" width=\"1087\" height=\"554\" srcset=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/7-Conditional-Redirect-By-Geo-Location.png 1087w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/7-Conditional-Redirect-By-Geo-Location-300x153.png 300w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/7-Conditional-Redirect-By-Geo-Location-1024x522.png 1024w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/7-Conditional-Redirect-By-Geo-Location-768x391.png 768w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/7-Conditional-Redirect-By-Geo-Location-50x25.png 50w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/7-Conditional-Redirect-By-Geo-Location-920x469.png 920w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/7-Conditional-Redirect-By-Geo-Location-600x306.png 600w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/7-Conditional-Redirect-By-Geo-Location-320x163.png 320w\" sizes=\"auto, (max-width: 1087px) 100vw, 1087px\" \/>Overview<\/h3>\n<p class=\"whitespace-normal\">Country-based conditional redirects allow you to customize the post-checkout experience for customers based on their billing address location. This powerful feature lets you create targeted thank you pages and follow-up experiences specific to different geographical regions, enabling you to provide culturally relevant and localized post-purchase experiences.<\/p>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"benefits-of-country-based-redirects\" >Benefits of Country-Based Redirects<\/h3>\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 specialized thank you pages for different geographical markets<\/li>\n<li class=\"whitespace-normal break-words\">Offer region-specific promotions, shipping information, or return policies<\/li>\n<li class=\"whitespace-normal break-words\">Provide localized resources, support contacts, or warranty information<\/li>\n<li class=\"whitespace-normal break-words\">Display content in the appropriate language for different regions<\/li>\n<li class=\"whitespace-normal break-words\">Comply with region-specific legal requirements for post-purchase information<\/li>\n<li class=\"whitespace-normal break-words\">Improve customer experience with geographically relevant post-checkout content<\/li>\n<\/ul>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"step-by-step-guide-creating-a-country-based-redirect\" >Step-by-Step Guide: Creating a Country-Based Redirect<\/h3>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"1-access-the-conditional-redirects-form\" >1. Access the Conditional Redirects Form<\/h4>\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\">Navigate to WooCommerce &gt; WRAC Redirect<\/li>\n<li class=\"whitespace-normal break-words\">Click on the &#8220;Conditional Redirects&#8221; tab<\/li>\n<li class=\"whitespace-normal break-words\">Click &#8220;Add New Redirect&#8221; button<\/li>\n<\/ul>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"2-configure-basic-rule-information\" >2. Configure Basic Rule Information<\/h4>\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\"><strong>Enable the Rule<\/strong>: Toggle the switch to enable your country redirect rule<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Name Your Rule<\/strong>: Enter a descriptive name like &#8220;Australia Custom Thank You Page&#8221;<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Add a Description<\/strong>: Briefly explain what your rule does, e.g., &#8220;Redirects Australian customers to our Australia-specific thank you page with local shipping details&#8221;<\/li>\n<\/ul>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"3-set-up-the-country-condition\" >3. Set Up the Country Condition<\/h4>\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\">In the Redirect Conditions section, click the &#8220;+ Add Condition&#8221; button<\/li>\n<li class=\"whitespace-normal break-words\">From the first dropdown menu, select &#8220;Country (Billing Address)&#8221;<\/li>\n<li class=\"whitespace-normal break-words\">From the second dropdown (operator), select &#8220;Is&#8221;<\/li>\n<li class=\"whitespace-normal break-words\">In the third dropdown, click &#8220;Select Country&#8221; to open the country list<\/li>\n<li class=\"whitespace-normal break-words\">Select your desired country (e.g., &#8220;Australia&#8221;, &#8220;Germany&#8221;, &#8220;Japan&#8221;, etc.)<\/li>\n<li class=\"whitespace-normal break-words\">The condition is now set to redirect when an order&#8217;s billing address matches your selected country<\/li>\n<\/ul>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"4-configure-redirect-actions\" >4. Configure Redirect Actions<\/h4>\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\">In the Redirect Actions section:\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\"><strong>Redirect Type<\/strong>: Select &#8220;Redirect to Page&#8221; from the dropdown<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Successful Order Destination<\/strong>: From &#8220;Select Successful Redirect Page&#8221; dropdown, choose the appropriate landing page for customers from your selected country<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Failed Order Destination<\/strong>: From &#8220;Select Failed Order Redirect Page&#8221; dropdown, choose where customers should go if their payment fails<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"5-optional-add-time-limitations\" >5. Optional: Add Time Limitations<\/h4>\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 you want this country redirect to be temporary (e.g., for seasonal promotions in specific regions):\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\">Enable the &#8220;Redirect Time Range&#8221; toggle<\/li>\n<li class=\"whitespace-normal break-words\">Set the Start Date and End Date for when this redirect should be active<\/li>\n<li class=\"whitespace-normal break-words\">The rule will automatically activate and deactivate based on these dates<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"6-save-your-country-redirect-rule\" >6. Save Your Country Redirect Rule<\/h4>\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\">Click &#8220;Save changes&#8221; at the bottom of the form<\/li>\n<li class=\"whitespace-normal break-words\">Your country-based redirect is now active (if enabled)<\/li>\n<\/ul>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"advanced-country-redirect-configurations\" >Advanced Country Redirect Configurations<\/h3>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"multiple-countries-in-one-rule\" >Multiple Countries in One Rule<\/h4>\n<p class=\"whitespace-normal\">You can create more complex rules for regions by adding multiple country conditions:<\/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\">Set up your first country condition as described above<\/li>\n<li class=\"whitespace-normal break-words\">Click &#8220;+ Add Condition&#8221; again<\/li>\n<li class=\"whitespace-normal break-words\">Add another Country condition with a different country<\/li>\n<li class=\"whitespace-normal break-words\">This creates an &#8220;OR&#8221; relationship \u2013 the order will trigger the redirect if the billing address matches any of the specified countries<\/li>\n<\/ul>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"country-exclusions\" >Country Exclusions<\/h4>\n<p class=\"whitespace-normal\">You can also redirect orders that are NOT from specific countries:<\/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\">Add a Country condition<\/li>\n<li class=\"whitespace-normal break-words\">Select &#8220;Is Not&#8221; from the operator dropdown<\/li>\n<li class=\"whitespace-normal break-words\">Select the country you want to exclude<\/li>\n<li class=\"whitespace-normal break-words\">This rule will trigger for orders from any country except the specified one<\/li>\n<\/ul>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"combining-with-other-conditions\" >Combining with Other Conditions<\/h4>\n<p class=\"whitespace-normal\">For more targeted redirects, combine country conditions with other factors:<\/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\"><strong>Country + Product Category<\/strong>: Different experiences based on regional preferences for product types<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Country + Payment Method<\/strong>: Customized checkout success pages based on regional payment preferences<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Country + Order Total<\/strong>: Special post-purchase experiences for high-value orders from specific markets<\/li>\n<\/ul>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"practical-examples\" >Practical Examples<\/h3>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"example-1-australia-specific-shipping-information\" >Example 1: Australia-Specific Shipping Information<\/h4>\n<p class=\"whitespace-normal\"><strong>Rule Configuration:<\/strong><\/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\">Condition: Country (Billing Address) Is &#8220;Australia&#8221;<\/li>\n<li class=\"whitespace-normal break-words\">Action: Redirect to Page &#8220;Australia Thank You Page&#8221;<\/li>\n<\/ul>\n<p class=\"whitespace-normal\"><strong>Result:<\/strong> When Australian customers complete a purchase, they&#8217;re redirected to a thank you page featuring Australia-specific shipping timeframes, local support contacts, and information about customs or import considerations.<\/p>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"example-2-european-union-vat-compliance\" >Example 2: European Union VAT Compliance<\/h4>\n<p class=\"whitespace-normal\"><strong>Rule Configuration:<\/strong><\/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\">Condition: Multiple Countries (All EU Member States)<\/li>\n<li class=\"whitespace-normal break-words\">Action: Redirect to Page &#8220;EU Purchase Confirmation&#8221;<\/li>\n<\/ul>\n<p class=\"whitespace-normal\"><strong>Result:<\/strong> Customers from EU countries are redirected to a specialized page that includes required EU VAT information, digital rights notices, and other region-specific compliance details.<\/p>\n<h4 class=\"text-base font-bold text-text-100 mt-1\" id=\"example-3-holiday-season-in-north-america\" >Example 3: Holiday Season in North America<\/h4>\n<p class=\"whitespace-normal\"><strong>Rule Configuration:<\/strong><\/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\">Condition: Country (Billing Address) Is &#8220;United States&#8221; OR &#8220;Canada&#8221;<\/li>\n<li class=\"whitespace-normal break-words\">Action: Redirect to Page &#8220;North American Holiday Guide&#8221;<\/li>\n<li class=\"whitespace-normal break-words\">Time Range: Active during holiday shopping season only<\/li>\n<\/ul>\n<p class=\"whitespace-normal\"><strong>Result:<\/strong> During the North American holiday season, customers from the US and Canada are redirected to a festive thank you page with holiday delivery schedules, gift-wrapping options, and seasonal promotions.<\/p>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"troubleshooting-country-based-redirects\" >Troubleshooting Country-Based Redirects<\/h3>\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\"><strong>Rule Not Triggering<\/strong>: Verify that the country code exactly matches the WooCommerce country list<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Multiple Rules Conflict<\/strong>: Check if you have other rules that might take precedence<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Missing Countries<\/strong>: Ensure you&#8217;ve included all relevant countries for regional rules<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Time-Based Problems<\/strong>: Confirm the current date falls within your configured date range<\/li>\n<\/ul>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"best-practices\" >Best Practices<\/h3>\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 dedicated landing pages tailored to each key geographical market<\/li>\n<li class=\"whitespace-normal break-words\">Include region-specific shipping information, support contacts, and policies<\/li>\n<li class=\"whitespace-normal break-words\">Consider cultural preferences and language requirements for different regions<\/li>\n<li class=\"whitespace-normal break-words\">Prioritize country-specific legal compliance notices where required<\/li>\n<li class=\"whitespace-normal break-words\">Test each country redirect to ensure a smooth experience for international customers<\/li>\n<li class=\"whitespace-normal break-words\">Update regional pages regularly with current shipping timeframes and local promotions<\/li>\n<li class=\"whitespace-normal break-words\">Monitor which country redirects lead to the highest customer satisfaction or repeat business<\/li>\n<\/ul>\n<p class=\"whitespace-normal\">Country-based redirects are an excellent way to personalize the post-purchase experience for your international customers, providing relevant information that recognizes their specific regional needs and expectations.<\/p>\n<div class=\"h-8\"><\/div>\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":[9],"ht_kb_tag":[],"class_list":["post-123","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-wrac-conditional"],"_links":{"self":[{"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb\/123","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=123"}],"version-history":[{"count":4,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb\/123\/revisions"}],"predecessor-version":[{"id":133,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb\/123\/revisions\/133"}],"wp:attachment":[{"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb_category?post=123"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb_tag?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}