How to extend fe_user on order and confirm email
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
How to extend fe_user on order and confirm email
Hello
I like some fields more for the user. aimeos creates new user on order so how can i set some additional fields there?
I like alos to send a verificationmail for his email.(like femanager).
I like some fields more for the user. aimeos creates new user on order so how can i set some additional fields there?
I like alos to send a verificationmail for his email.(like femanager).
Re: How to extend fe_user on order and confirm email
You can add fields to the billing address template prefixed with "cs_extra" whose names and values will be passed to the fromArray() method of your customer manager in the account sub-client:mantik wrote:I like some fields more for the user. aimeos creates new user on order so how can i set some additional fields there?
- https://github.com/aimeos/ai-client-htm ... d.php#L227
- https://github.com/aimeos/ai-client-htm ... d.php#L230
That's actually not part of Aimeos because it only creates the account. You should use femanager if you need that feature for new users.mantik wrote:I like alos to send a verificationmail for his email.(like femanager).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: How to extend fe_user on order and confirm email
But how can i hook in the creation of Account and do that?
The Problem is if aimeos create the user then femenagaer is useless. femanager is just for creating the user.
The Problem is if aimeos create the user then femenagaer is useless. femanager is just for creating the user.
Re: How to extend fe_user on order and confirm email
You can add a decorator that executes required actions after addItem() of the customer controller was called:
https://github.com/aimeos/ai-controller ... rd.php#L31
https://github.com/aimeos/ai-controller ... rd.php#L31
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 5
- Joined: 09 Jan 2019, 08:07
Re: How to extend fe_user on order and confirm email
Hello,
I want to add some additional fields in address billing template. I will set up them as hidden field in template.
Problem is that the fields I want to add isn't fields of aimeos.customer.
I have extend my fe_user with te field additional_data. How can i now fill this field be the in cs_extra array on user creation
P.S. I add that fields to table fe_users with my own extension.
Thanks
I want to add some additional fields in address billing template. I will set up them as hidden field in template.
Problem is that the fields I want to add isn't fields of aimeos.customer.
I have extend my fe_user with te field additional_data. How can i now fill this field be the in cs_extra array on user creation
P.S. I add that fields to table fe_users with my own extension.
Thanks
Re: How to extend fe_user on order and confirm email
The cs_extra key/value pairs are also passed to the customer frontend controller:
https://github.com/aimeos/ai-client-htm ... d.php#L230
There, they are passed via fromArray() to the customer item:
https://github.com/aimeos/ai-controller ... rd.php#L31
Thus, you only have to extend the customer item with get/set methods and an extended fromArray/toArray method and overwrite the saveItem() method of the customer manager.
https://github.com/aimeos/ai-client-htm ... d.php#L230
There, they are passed via fromArray() to the customer item:
https://github.com/aimeos/ai-controller ... rd.php#L31
Thus, you only have to extend the customer item with get/set methods and an extended fromArray/toArray method and overwrite the saveItem() method of the customer manager.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: How to extend fe_user on order and confirm email
hmmm is there a A- z example how to do that updatesafely?
Re: How to extend fe_user on order and confirm email
Yes, here's the relevant article from the documentation:
https://aimeos.org/docs/Developers/Libr ... gers_items
Like always, add your own code to a project specific Aimeos (TYPO3) extension so you will be save for updates
https://aimeos.org/docs/Developers/Libr ... gers_items
Like always, add your own code to a project specific Aimeos (TYPO3) extension so you will be save for updates
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: How to extend fe_user on order and confirm email
Hello i got an Error here an this step:
So i add this just for testing (to be sure that the configuration works an catch.):
So in the Listview of jQadmin nothing..., if i open i got an error for the configuration lists, group and property (thats ok because there is no class Mantikcustomer1-6. So the error is good. I see now that the configuration go search my classes.
My problem ist why address dosent care? and the bigger problem is why standard dosent care (mantikcustomer1 and mantikcustomer6).
I like to add new fields to jqAdmin so i want the new field in the customer list view but cus my own manager dosent catch i got an error for the setters/getter-methods.
i think to work in the list one of this configurations must work
but it dosent do. (no error that class not exists even when i exept this error).
Dont understand me wrong: no error is good but i do it like this to check the configurationhandling.
so result: 3 time it works, 3 time not -> same synthax.... :/
Code: Select all
return [
'product' => [
'manager' => [
'name' => 'Myproject',
'standard' => [
'search' => [
'ansi' => 'SELECT ... (with new column)',
],
],
],
],
];
Code: Select all
return array(
'manager' => array(
'name'=>'Mantikcustomer1',
'address'=>array(
'name'=>'Mantikcustomer2',
),
'group'=>array(
'name'=>'Mantikcustomer3',
),
'lists'=>array(
'name'=>'Mantikcustomer4',
),
'property'=>array(
'name'=>'Mantikcustomer5',
),
'standard' => array(
'name'=>'Mantikcustomer6',
),
),
);
My problem ist why address dosent care? and the bigger problem is why standard dosent care (mantikcustomer1 and mantikcustomer6).
I like to add new fields to jqAdmin so i want the new field in the customer list view but cus my own manager dosent catch i got an error for the setters/getter-methods.
i think to work in the list one of this configurations must work
Code: Select all
'manager' => array(
'name'=>'Mantikcustomer1',
'standard' => array(
'name'=>'Mantikcustomer6',
),
),
Dont understand me wrong: no error is good but i do it like this to check the configurationhandling.
so result: 3 time it works, 3 time not -> same synthax.... :/
Re: How to extend fe_user on order and confirm email
Your configuration doesn't match in your examples. The first is for the product manager, the second for the customer domain and its submanagers. Please post one example that shows the problem and describe only that problem instead of mixing up several things.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star