Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore F.A.Q/Instructions › Showing the Member Registration Completion URL on the Thank You Page › Reply To: Showing the Member Registration Completion URL on the Thank You Page
Thanks for the explanation and suggestions, admin! I’ve decided to have the TY page explain to people, that they should check their email for additional steps that have to be completed. Simply because that seems to be the easiest and most fail-safe approach.
Though I would like to add a suggestion:
Modding the code below:
if($member_rego_data_needed && WP_ESTORE_SHOW_REGO_COMPLETION_LINK_ON_TY_PAGE==='1'){
… located in the eStore_includes3.php file, is an option. One could use this to either output TY text with unique URL (buttons), if $result is not 0 else display TY text without buttons / unique URL.
I didn’t go for this option, because one has to hard code the TY page content. Making it impossible to easily edit the page’s content via the WP admin dashboard.
But while I’m at it, I’d like to share the following idea with you (solving the need to hard code 2 TY page content versions, as mentioned above):
How about adding a section like “Affiliate Area/Center Related Options” to eStore’s Settings area? Then, if WP_ESTORE_SHOW_REGO_COMPLETION_LINK_ON_TY_PAGE is set to 1 (via the same dashboard section), people can add 2 different HTML-supported versions of TY page content; 1 for when the URL is created / with buttons/link, 1 for when the URL is not yet created / without buttons/link.
The unique reg URL could be a {unique_reg_url}-like tag, which can be placed anywhere in the TY page content. Making it also possible to use it as a button URL. People who’d rather prefer a simple clickable link, could use a {unique_reg_link}-like tag.
Then a content adding shortcode should be added to the actual TY page, just like most of the eMember-related pages.
The TY content version without the reg URL, is always required (ensuring the TY page is never completely blank, should people use the shortcode). And the version with the reg URL is optional (only required once WP_ESTORE_SHOW_REGO_COMPLETION_LINK_ON_TY_PAGE is set to 1).
Though perhaps you are already thinking of a better approach.