This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the customer wanted to use a custom field for user's to select their predetermined currency that they wanted to view his shop in.
Solution:
Unfortunately this isn't possible natively as you will need to write some custom code to determine which option the user has set on their profile.
Okay, I am building a site which allows users to put up items for sale.
So each user gets to chose their default currency.
So in the drop down selector you might have a choice between:-
British Pound
Euro
US Dollar
However for each of these choices I also need to store two associated custom fields.
So let's say the user chooses 'British Pound'
I also need to store (for that user):-
'GBP'
'£'
But of course I don't want to have to ask the user to select another two drop downs.
I need these fields for other uses within the site.
So you essentially want users to define a currency.
To do this just add a Select field and then populate it with the currency symbols so the user has a choice to select the currency.
So after you allow them to select the appropriate currency you can also create another custom field with the symbol and then use the conditional group for the custom fields to only display the appropriate field as per the user's selection.
I get what you're saying now. At first I wasn't so clear.
So you want when your user's sign up they should be able to see their preferred currency based on what was selected at registration.
So if the selected USD then all the prices on the site would be in USD and so on.
Actually this won't be possible with just the use of custom fields, thats because we have to take into consideration the currency conversion, so 100 usd is not the same as £ 100.
Hi Shane
Thanks for the advice. I have a currency convertor plug in so that's not the issue.
Anyway I have written a php function which takes in the currency name selected by the user and then stores the correct currency symbol in another custom user field for the user.
All sorted!
Regards
Robert