{"id":75,"date":"2025-05-15T22:58:53","date_gmt":"2025-05-15T22:58:53","guid":{"rendered":"https:\/\/njengah.com\/docs\/?post_type=ht_kb&#038;p=75"},"modified":"2025-05-15T22:58:53","modified_gmt":"2025-05-15T22:58:53","slug":"wrac-global-purchase-history","status":"publish","type":"ht_kb","link":"https:\/\/njengah.com\/docs\/knowledge-base\/wrac-global-purchase-history\/","title":{"rendered":"WRAC Global Purchase History"},"content":{"rendered":"<h1 class=\"text-2xl font-bold mt-1 text-text-100\" id=\"_\" ><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-76\" src=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History.png\" alt=\"\" width=\"1070\" height=\"890\" srcset=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History.png 1070w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-300x250.png 300w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-1024x852.png 1024w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-768x639.png 768w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-50x42.png 50w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-920x765.png 920w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-600x499.png 600w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-320x266.png 320w\" sizes=\"auto, (max-width: 1070px) 100vw, 1070px\" \/><\/h1>\n<h2 class=\"text-xl font-bold text-text-100 mt-1 -mb-0.5\" id=\"overview\" ><strong>Overview<\/strong><\/h2>\n<p class=\"whitespace-normal\">The Global Redirect by Customer Purchase History feature allows store owners to create targeted post-checkout experiences based on customers&#8217; previous purchase patterns. 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 checkout experiences for repeat buyers<\/li>\n<li class=\"whitespace-normal break-words\">Redirect customers who have purchased specific products in the past<\/li>\n<li class=\"whitespace-normal break-words\">Provide customized thank you pages based on purchase history<\/li>\n<\/ul>\n<h2 class=\"text-xl font-bold text-text-100 mt-1 -mb-0.5\" id=\"how-to-set-up-purchase-history-based-redirects\" ><strong>How to Set Up Purchase History-Based Redirects<\/strong><\/h2>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"1-accessing-the-purchase-history-settings\" ><strong>1. Accessing the Purchase History Settings<\/strong><\/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>Purchase History<\/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-purchase-history-redirects\" ><strong>2. Enabling Purchase History Redirects<\/strong><\/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 purchase history-based redirects<\/li>\n<li class=\"whitespace-normal break-words\">This enables the &#8220;Turn On to create redirect based on selected products purchase history&#8221; feature<\/li>\n<\/ol>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\" id=\"3-selecting-products-for-history-tracking\" ><strong>3. Selecting Products for History Tracking<\/strong><\/h3>\n<p class=\"whitespace-normal\">You have two methods to specify which previous purchases should trigger the redirect:<\/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 products IDs separated by commas&#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 product IDs (e.g., &#8220;199,82,39&#8221;)<\/li>\n<li class=\"whitespace-normal break-words\">To find product 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>Products<\/strong> in WordPress<\/li>\n<li class=\"whitespace-normal break-words\">Hover over a product and check the URL for &#8220;post=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-77\" src=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-Specific-Product.png\" alt=\"\" width=\"1061\" height=\"696\" srcset=\"https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-Specific-Product.png 1061w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-Specific-Product-300x197.png 300w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-Specific-Product-1024x672.png 1024w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-Specific-Product-768x504.png 768w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-Specific-Product-50x33.png 50w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-Specific-Product-920x604.png 920w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-Specific-Product-600x394.png 600w, https:\/\/njengah.com\/docs\/wp-content\/uploads\/2025\/05\/3_-Global_Redirect-by-User-Purchase-History-Specific-Product-320x210.png 320w\" sizes=\"auto, (max-width: 1061px) 100vw, 1061px\" \/><\/p>\n<p class=\"whitespace-normal\"><strong>Method B: Visual Product 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 Purchase History Products<\/strong> button<\/li>\n<li class=\"whitespace-normal break-words\">A popup will appear showing all your products<\/li>\n<li class=\"whitespace-normal break-words\">Check the boxes for products you want to include in the purchase history criteria<\/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=\"4-setting-the-redirect-destination\" ><strong>4. Setting the Redirect Destination<\/strong><\/h3>\n<p class=\"whitespace-normal\">Choose where customers with matching purchase history will be redirected:<\/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;\/returning-customer-thanks&#8221;)<\/li>\n<li class=\"whitespace-normal break-words\">This page will display if the purchase history matches the products selected above<\/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:\/\/example.com\/loyalty-rewards\">https:\/\/example.com\/loyalty-rewards<\/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=\"5-failed-order-handling\" ><strong>5. Failed Order Handling<\/strong><\/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=\"6-save-your-configuration\" ><strong>6. Save Your Configuration<\/strong><\/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 purchase history 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 they have previously purchased any of the products you specified<\/li>\n<li class=\"whitespace-normal break-words\">If there&#8217;s a match, 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\" ><strong>Practical Examples<\/strong><\/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>VIP 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\">Purchase History Products: IDs of your premium products<\/li>\n<li class=\"whitespace-normal break-words\">Redirect to: &#8220;\/vip-customer-thanks&#8221; with exclusive offers for repeat high-value customers<\/li>\n<\/ul>\n<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Product-Specific Follow-up<\/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\">Purchase History Products: IDs of products that typically need accessories<\/li>\n<li class=\"whitespace-normal break-words\">Redirect to: A page with relevant accessories and add-ons<\/li>\n<\/ul>\n<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Loyalty Program Integration<\/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\">Purchase History Products: Any product IDs (to identify returning customers)<\/li>\n<li class=\"whitespace-normal break-words\">Redirect to: External loyalty program URL with points balance<\/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\" ><strong>Advanced Use Cases<\/strong><\/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\"><strong>Combine with other WRAC conditions<\/strong>: Create sophisticated redirect logic using purchase history alongside other factors<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Customer segmentation<\/strong>: Create different experiences for first-time vs. returning customers<\/li>\n<li class=\"whitespace-normal break-words\"><strong>Product education<\/strong>: Direct repeat buyers to advanced usage tips for products they&#8217;ve purchased before<\/li>\n<\/ul>\n<h2 class=\"text-xl font-bold text-text-100 mt-1 -mb-0.5\" id=\"troubleshooting\" ><strong>Troubleshooting<\/strong><\/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 product IDs are correctly entered<\/li>\n<li class=\"whitespace-normal break-words\">Check that your selected redirect page exists<\/li>\n<li class=\"whitespace-normal break-words\">For external URLs, ensure they include &#8220;https:\/\/&#8221; prefix<\/li>\n<li class=\"whitespace-normal break-words\">Remember that the customer must have completed previous orders with the specified products<\/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-75","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\/75","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=75"}],"version-history":[{"count":1,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb\/75\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb\/75\/revisions\/78"}],"wp:attachment":[{"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb_category?post=75"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/njengah.com\/docs\/wp-json\/wp\/v2\/ht_kb_tag?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}