Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

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!
User avatar
niklas-doerner
Posts: 6
Joined: 16 Aug 2020, 16:00

Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

Post by niklas-doerner » 16 Aug 2020, 16:18

Hello,

The frontend login (with felogin) works as well, whether I created a new user manually, with aimeos (end of the checkout process) or with an other frontend user registration extension before.

The Problem is that I can't edit the costumers data with the build in 'Aimeos Shop - Account profile' content element. I have tested it with different extensions like 'femanager' or 'sf_register' and at last manually in the backend.

But when I create the user with aimeos itself at the end of the checkout process (checkbox near terms) then I can edit the user data in frontend with the 'Aimeos Shop - Account profile' content element.

My Versions: TYPO3 10.4.6 / Aimeos 20.7.1 / PHP 7.4.3 / Apache/2.4.41 (Ubuntu) / MySQL 8.0.21 / Bootstrap Package 11.0.2

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

Re: Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

Post by aimeos » 17 Aug 2020, 06:49

Make sure you've set the PID configuration correctly:
https://aimeos.org/docs/TYPO3/Install_A ... etup_login
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
niklas-doerner
Posts: 6
Joined: 16 Aug 2020, 16:00

Re: Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

Post by niklas-doerner » 17 Aug 2020, 20:13

I have had done it before. Here:

Code: Select all

plugin.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = 13
I used the PID of the sysfolder, where the Users stored, and here the PID of the actually Page with the Login form:

Code: Select all

config.typolinkLinkAccessRestrictedPages = 14
The Login isn't the problem. The users stored correctly and users are able to login and get access of user restricted pages.

Which URL should I use here?

Code: Select all

config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###
Last edited by niklas-doerner on 25 Aug 2020, 15:21, edited 1 time in total.

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

Re: Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

Post by aimeos » 19 Aug 2020, 07:22

niklas-doerner wrote: 17 Aug 2020, 20:13

Code: Select all

plugin.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = 13
Maybe it's a problem with the siteid. Guess the value of the "siteid" column is empty for that record in fe_users but is that also the case for the corresponding fe_users_address entry?
niklas-doerner wrote: 17 Aug 2020, 20:13 Which URL should I use here?

Code: Select all

config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###
None, the marker ###RETURN_URL### is replaced by felogin.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
niklas-doerner
Posts: 6
Joined: 16 Aug 2020, 16:00

Re: Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

Post by niklas-doerner » 21 Aug 2020, 14:14

Hey,

as you see the fe_users_address is empty.

At the other screenshot you see that the pid is taken correctly in plugin.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = 13

The user with the uid 17 is the user created at the end of the checkout process. Unlike to the user 39, which is created with another extension for user registration.
Attachments
Screenshot from 2020-08-21 16-02-49.png
Screenshot from 2020-08-21 16-02-49.png (49.49 KiB) Viewed 2561 times
Screenshot from 2020-08-21 16-01-05.png
Screenshot from 2020-08-21 16-01-05.png (34.24 KiB) Viewed 2561 times

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

Re: Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

Post by aimeos » 25 Aug 2020, 07:52

Can you please set

Code: Select all

plugin.tx_aimeos.settings.madmin.log.manager.standard.loglevel = 7
and open the account profile page in your browser? Then, have a look at the Log panel in the admin backend or into the madmin_log table and search for the SQL that retrieves the data from fe_users. Can you post that statement please?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
niklas-doerner
Posts: 6
Joined: 16 Aug 2020, 16:00

Re: Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

Post by niklas-doerner » 25 Aug 2020, 14:48

Did you mean this output statement?
Attachments
madmin_log table.zip
(2.09 KiB) Downloaded 112 times

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

Re: Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

Post by aimeos » 25 Aug 2020, 15:00

Yes. The user with uid 39 should be found and his data displayed in the account profile component because

Code: Select all

( ( t3feu."siteid" = '1.' OR t3feu."siteid" = '' ) AND ( t3feu."uid" = 39 AND t3feu."disable" = 0 ) ) AND t3feu."deleted" = 0
matches siteid "1." and an empty siteid which is the case for that user.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
niklas-doerner
Posts: 6
Joined: 16 Aug 2020, 16:00

Re: Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

Post by niklas-doerner » 25 Aug 2020, 15:18

Okay I understand but I don't get what I can do.

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

Re: Couldn't edit frontend user data with 'Aimeos Shop - Account profile' content element

Post by aimeos » 25 Aug 2020, 17:13

Found the problem in the update SQL statement:
https://github.com/aimeos/ai-typo3/comm ... df7485fefb

Can you update to 2020.07.x-dev and test if it works for you too?

Code: Select all

composer req aimeos/ai-typo3:2020.07.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply