If you want to use code redemption on registration, we recommend Gravity Forms first, then Theme My Login, but if neither is available then a registration shortcode is included in the plugin. To use it, create a new page in WordPress and add the User Code Registration shortcode or block. This will add a very basic registration form to the page that includes a code redemption field.
To customize the messages users see when filling out the form, use the Custom messages section at Uncanny Codes > Settings.
To require that users check a Terms and Conditions checkbox before submitting the form, enter a message in the Terms & Conditions section at Uncanny Codes > Settings.
Block Name: User Code Registration
|Attribute/Block Setting Name||Description||Attribute/Block Setting Values||Default Value|
|redirect||Redirects the user to the specified page after they submit the form||A relative or absolute URL||none (keeps user on same page)|
|code_optional||Specifies whether or not the registration code is an optional field||"yes" or "no"||no|
|auto_login||Specifies whether or not the user should automatically be logged in on form submission||"yes" or "no"||yes|
|role||Specifies the new user's role||any valid WordPress role (e.g. "group_leader")||subscriber|
I am trying to make a registration using this code:
Is is possible for me to use Norwegian names for the fields instead of “First name” use “Fornavn”
Yes, I checked the string and confirmed that it is translation ready. You must use a translation plugin to change this text, but it should be recognized as translatable by whatever tool you use. If it’s not working, please submit a ticket, as we’re not able to support issues directly using the Knowledge Base.
Im tried to input the shortcode [uo_code_registration] on our editor and when we click preview it did not show the form. It seems that the shortcode is notworking we tried to test and input again the shortcode but it did not work.
I’m afraid we can’t provide site-specific support in the Knowledge Base. Can you open a ticket or send us an email with more detail? If our Uncanny LearnDash Codes plugin is definitely active and you’re not using any kind of page builder, it sounds like a problem that needs further investigation.
What would the code addition look line to redirect. [uo_code_registration] I do not know how to write the redirect portion.
Hi David. It would look like this: [uo_code_registration redirect=”https://google.com”] or like this: [uo_code_registration redirect=”/dashboard”]
Tell me, how can I display the registration code field in the standard registration form woocomerce or wordpress?
So how is the finished form displayed on shotcode, and you only need a code field?
You cannot use the standard WordPress registration form (it’s not really recommended anyway, it will attract spam) or the Woo registration form. You must use ours, Gravity Forms or Theme My Login. For Woo, if you mean you want to capture the code as part of a purchase, it is part of the checkout form but not in the registration; have a look at https://www.uncannyowl.com/knowledge-base/using-codes-woocommerce/.
I mean, in the user registration form display the field enter the registration code.
I have a user registration form in woocomerce, and I would like to add a field to it – a registration code for it to work.
I’m afraid that’s not a scenario we can support. If a code should be added as part of WooCommerce workflow, it should be done using the code option that we build into the checkout page. It may certainly be possible to build a workaround, but it is not something we could support.
With the login form shortcode, is there any way the user just needs to enter the enrolment key without getting them to register again? It seems double handling that a group leader will enrol a student, yet they also need to enrol themselves. If a key is generated and emailed can we just have the enrolment form request the key then proceed?
Hi Ben, it sounds like you might be looking for the code redemption shortcode: https://www.uncannyowl.com/knowledge-base/standalone-code-redemption/
I’ve used [uo_code_registration] – works amazingly well! However, I want to edit the field label “Email/Username” to just say “Email”. How would I change this?
I’m afraid that to change strings of interface elements that we don’t have a UI for, you will need to use a translation plugin. We typically test against and use Logo Translate. With it, you can scan for all translatable strings and replace them with any other text you want to use instead.
I have two products: Product A & Product B
Based on the product-specific redeem code the customer enters, I would like to redirect each customer to different Thank You Page respectively (ie. Customer enters: Product A redeem code –> Get redirected to “Thank you for purchasing Product A” Page)
How can I achieve this?
Remarks: I’m doing this for Google Analytics tracking purpose
That’s unfortunately not supported right now.
Is there any way to add an additional field to the registration form? I need to get geographical info (province name) at registration too. Is there any way I can do this??
Sorry Carolyn, I’m afraid with the built in registration form it’s not possible to add extra fields. This is where you may find our integrations with popular form builders helpful, because then you can capture any additional fields you might need.