- This topic has 5 replies, 3 voices, and was last updated 8 years, 11 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Tweaks › Change Affiliate Sign-up Page Default Country
On the Affiliate signup page – How do I change the default country from US to UK (NOTE WP eStore also installed).
Already tried changing to UK in the following code but it has no effect!
…./wp-content/plugins/wp-affiliate-platform/views/register_view.php
ORIGINAL
<select name=”acountry” class=”user-select”>
<?php
foreach ($GLOBALS as $key => $country)
print ‘<option value=”‘ . $key . ‘” ‘ . ($key == “US” ? ‘selected’ : ”) . ‘>’ . $country . ‘</option>’ . “n”;
?>
</select>
CHANGED TOO
<select name=”acountry” class=”user-select”>
<?php
foreach ($GLOBALS as $key => $country)
print ‘<option value=”‘ . $key . ‘” ‘ . ($key == “UK” ? ‘selected’ : ”) . ‘>’ . $country . ‘</option>’ . “n”;
?>
</select>
Pointers appreciated.
Yep already tried that, there must be something fundamentally wrong as changing the country code to GB does nothing. (I made the change direct to the live site….)
Thanks for the heads up anyway.
Lets make sure you are updating the correct file. Which affiliate view option are you using? See reference here:
https://www.tipsandtricks-hq.com/wordpress-affiliate/setting-up-the-affiliate-viewarea-315
HI – Thanks for the reply. Using standalone affiliate view.
Sorted……
The info I researched initially stated make the default country code change to register_view.php
I’ve just amended
/home/easyprobate/public_html/wp-content/plugins/wp-affiliate-platform/affiliates/register.php
all appears to be responding correctly to edits now.
Thanks.