1. Home
  2. Knowledge Base
  3. Uncanny Codes
  4. Using Codes With the Built-In Registration Form

Using Codes With the Built-In Registration Form

Overview

custom-regIf 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.

Form options

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.

Shortcode/Block

[uo_code_registration]

Block Name: User Code Registration

Attributes/Block Settings

Attribute/Block Setting NameDescriptionAttribute/Block Setting ValuesDefault Value
redirectRedirects the user to the specified page after they submit the formA relative or absolute URLnone (keeps user on same page)
code_optionalSpecifies whether or not the registration code is an optional field"yes" or "no"no
auto_loginSpecifies whether or not the user should automatically be logged in on form submission"yes" or "no"yes
roleSpecifies the new user's roleany valid WordPress role (e.g. "group_leader")subscriber
Was this article helpful?
18 replies
  1. Trond Skaaare
    Trond Skaaare says:

    Hi

    I am trying to make a registration using this code:
    [uo_code_registration]
    Is is possible for me to use Norwegian names for the fields instead of “First name” use “Fornavn”

    Thanks
    Trond

    Reply
    • Ryan
      Ryan says:

      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.

      Reply
  2. Rommel Paa
    Rommel Paa says:

    Hi

    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.

    Reply
    • Ryan
      Ryan says:

      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.

      Reply
  3. david joyce
    david joyce says:

    What would the code addition look line to redirect. [uo_code_registration] I do not know how to write the redirect portion.

    Reply
    • Ken Young
      Ken Young says:

      Hi David. It would look like this: [uo_code_registration redirect=”https://google.com”] or like this: [uo_code_registration redirect=”/dashboard”]

      Reply
  4. Arsenii
    Arsenii says:

    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?

    Reply
    • Ryan
      Ryan says:

      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.

      Reply
  5. Ben
    Ben says:

    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?

    Reply
  6. Carolyn
    Carolyn says:

    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?

    Thanks!

    Reply
    • Ryan
      Ryan says:

      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.

      Reply
  7. Rak
    Rak says:

    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

    Reply
  8. Carolyn
    Carolyn says:

    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??

    Thanks,
    Carolyn

    Reply
    • Ryan
      Ryan says:

      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.

      Reply

Comments/Questions

Please note that this is not a support forum. If you are experiencing issues on your site, please open a support ticket instead. Site-specific support questions submitted as comments will be unanswered.

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest