You can register users on your online shop in many ways:
The most popular registration form for TYPO3 is the extension sr_feuser_register (Front End User Registration). You can see the Users folder in the site tree, as shown in the following screenshot:
You can add the user registration extension by following these steps:
This check enables you to import extensions (and extensions without review) from the TYPO3 TER directly. We will discuss this further inChapter 8.
Next, go to the section Import extensions (through the top drop-down menu) and check for newer extensions by downloading the list from the TYPO3 extension repository (click on Retrieve/Update). After the list is updated, type the extension name or keyword you are searching for and click on Import. The extension will be imported to your web space, or if the extension is already installed and there's a newer version, you will be able to update the extension:
After the extension is set up, you should configure it using TypoScript. If the chosen extension has fail
in the constants.txt
, you can set up the template through the Template module. You can configure it now as follows:
For frontend users' registration extension, the addition of a static template is necessary. You can do this by following these steps:
From the top drop-down menu, choose the Info/Modify option. You can edit the template by clicking on Edit the whole template record. Through this section, all fields connected to the template can be edited.
Choose the table Includes and add the static template by clicking on its title in the Items column:
You should add the selected static template of the extension to the Selected column after the CSS Styled Content (css_styled_content
) template. Otherwise, this template will not work, because css_styled_content
is the base static template that is responsible for page layout and mapping.
Save the options and move on to adding extensions into the page.
You should remember that for using sr_feuser_register, you also need extra extensions: div2007 and static_info_tables. These extensions will be required in the sr_feuser_register installation process.
Also, you can use the extension tt_products for user registration. If you choose to use this extension for registering your online shop users, you need to configure TypoScript for this extension.
As in the previous example, create a SysFolder where the users' accounts data will be stored.
For the tt_products extension to be able to register new user accounts, you need to add the following code to the TypoScript configuration:
plugin.tt_products.createUsers = 1
Also, we set up some extra options in the setup field—setting up the group for a new user. Here we signed up these groups:
For adding new users to clients, you need to add:
plugin.tt_products.memberOfGroup = 1
Also, specify the SysFolder ID where the new user accounts will be stored. New user accounts will be stored in this SysFolder:
plugin.tt_products.PIDuserFolder = 25
The new users will be sent e-mails with the username and password. The username will be the e-mail ID entered in the registration form, but the password will be generated automatically. At the same time, this data will be stored in your TYPO3 installation. The user can log into your web page with the received data. Also, you should remember that there aren't many avenues for adding user information using tt_products. If you want your users to be able to add detailed information about themselves, you should choose the sr_feuser_register extension. This extension provides the facility to add maximum information about the user. You can use this information in other parts of the web page - if you use an extension for a forum, for example.
For correct system operation, make sure that the accordant markers are in the created template file. For example, here is the code from products_css_en.html.html
(the sample templates for tt_products are in typo3conf/ext/tt_products/template
):
With your username and password it will be more convenient for you to order at our shop! Username: ###USERNAME### Password: ###PASSWORD### Please keep this e-mail in a secure place.