Forum

Thread tagged as: Question, Problem, Members

Members: User defined tags / Region based content display

I'm trying to work out a way to allow the user to select from either GBP or USD when registering to a site using the members app. It's so that we can change some elements throughout the site to be US specific.

Is there a way of having a select dropdown that adds a tag to the user based on the option? I have searched the documentation and forums and can't find anything. Manually adding tags is not an option, there are hundreds of users already registered with more to come.

Thanks.

Matt Whetherly

Matt Whetherly 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can add the tag with code:

https://docs.grabaperch.com/addons/members/page-functions/perch-member-add-tag/

So you'd need to look at the form submission and then set the tag accordingly.

Thanks. I've actually done it with perch_member_get('currency') and a <select> named 'currency' with options.

I couldn't get the add-tag php to work on the form itself, so I think it needs to be done as a form action, but I have it working for now.

Thanks.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Great!