Add usergroup to newly created user

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
ivofrie
Posts: 5
Joined: 03 Jul 2016, 16:21

Add usergroup to newly created user

Post by ivofrie » 03 Jul 2016, 16:34

Hi guys!

I have allmost finished my first webshop with Aimeos, really great work guys! It will for shure not be my last implementation into TYPO3.

During the order process, a new backend user is created and the address data is stored in the correct fields, as far as good. But how could the respective user group be set into that user account?

I have allready tried to set "TCAdefaults.fe_users.usergroup = 7" into the the config section of the SysFolder where the users are stored (and yes, 7 is the correct ID of the usergroup).

Thank you for a hint!

Kind regards, Ivo

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Add usergroup to newly created user

Post by aimeos » 03 Jul 2016, 19:18

ivofrie wrote: I have allmost finished my first webshop with Aimeos, really great work guys! It will for shure not be my last implementation into TYPO3.
Great to hear that! :-)
ivofrie wrote: During the order process, a new backend user is created and the address data is stored in the correct fields, as far as good. But how could the respective user group be set into that user account?
Use this configuration:

Code: Select all

tx_plugin.aimeos.settings.client.html.checkout.standard.order.account.standard.groupids
It accepts a single group ID or a list of group IDs (an array).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

ivofrie
Posts: 5
Joined: 03 Jul 2016, 16:21

Re: Add usergroup to newly created user

Post by ivofrie » 04 Jul 2016, 18:39

Dear Administrator,

Thank you so much for your fast answer, even on a Sunday :o

The snipped works, but should of course be modified like that:

Code: Select all

plugin.tx_aimeos.settings.client.html.checkout.standard.order.account.standard.groupids = X
Thank you once again, really great that support!

ltwmaster
Posts: 10
Joined: 01 Apr 2017, 20:39

Re: Add usergroup to newly created user

Post by ltwmaster » 20 Apr 2017, 18:33

Hey Guys,

I have also added the TS to the "Resources" Tab in the Folder "Users", but it doenst work.
Am I getting something wrong? Should the TS be added to the Scheduler Task that sends out the account email? or to the checkout page?

I am using the standard installation package on a fresh typo3 installation.

Cheers in advance,
ltw

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Add usergroup to newly created user

Post by aimeos » 21 Apr 2017, 16:18

The configuration should go into the root TypoScript setup template.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

ltwmaster
Posts: 10
Joined: 01 Apr 2017, 20:39

Re: Add usergroup to newly created user

Post by ltwmaster » 16 May 2017, 08:01

Hey Guys,

Code: Select all

plugin.tx_aimeos.settings.client.html.checkout.standard.order.account.standard.groupids = 2
does not do the job for me. Is there any scheduler Job that needs to be setup for this to work?

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Add usergroup to newly created user

Post by aimeos » 16 May 2017, 15:09

Can you post a screenshot of your configuration? Seems like you've still entered it into the wrong location.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

ltwmaster
Posts: 10
Joined: 01 Apr 2017, 20:39

Re: Add usergroup to newly created user

Post by ltwmaster » 16 May 2017, 15:38

Hi Aimeos,

Thank you for the quick reply!

Do you mean the TS that is in the template? Or which configuration?

I am using the quick installation...

Cheers,
ltw
Attachments
Bildschirmfoto 2017-05-16 um 17.37.21.png
Bildschirmfoto 2017-05-16 um 17.37.21.png (236.31 KiB) Viewed 4409 times

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Add usergroup to newly created user

Post by aimeos » 17 May 2017, 19:24

Seems to be the correct configuration. The value "2" is the ID of the "users" sysfolder?

The new configuration is this but that shouldn't matter because there's a fallback:

Code: Select all

plugin.tx_aimeos.settings.client.html.checkout.standard.process.account.standard.groupids = 2
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

ltwmaster
Posts: 10
Joined: 01 Apr 2017, 20:39

Re: Add usergroup to newly created user

Post by ltwmaster » 18 May 2017, 06:45

Dear Support,

I feel a bit awkward: I just checked back in my db and I used the wrong ID... Works like a charm now.

Post Reply