Customer manager save event
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: Customer manager save event
Aimeos, thank you for the great support and cooperation! Now seems it works.
My version is:
When I modify simple filed $customer->isModified() returns true, or if I modify nothing it shows false. It is ok. But it doesn't work as I expected for groups. If I add or delete group to customer it shows always false. How can I solve this situation with groups ?
Thank you so much!
My version is:
Code: Select all
aimeos/aimeos-core 2019.10.x-dev 64b1a38 Full-featured e-commerce components for high performance online shops
Thank you so much!
Re: Customer manager save event
We fixed a bug that prevented removing all groups from a customer. This is available in aimeos/ai-admin-jqadm 2019.10.x-dev. Can you try if it works now also for you?
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
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: Customer manager save event
I was hoping it will work(( but it doesn't (( The log is:
Packages versions when I tried:
I also executed to grab fresh files...
I ask you and hope it will be fixed soon..
Thank you!
Code: Select all
[20-Nov-2019 21:38:44 UTC] modified: customer.groups :: NULL -> array (
0 => 1,
)
Code: Select all
aimeos/ai-admin-jqadm 2019.10.x-dev ac5080a Aimeos ai-admin-jqadm extension
aimeos/ai-admin-jsonadm 2019.10.2 Aimeos ai-admin-jsonadm extension
aimeos/ai-client-html 2019.10.8 Aimeos ai-client-html extension
aimeos/ai-client-jsonapi 2019.10.1 Aimeos JSON API extension
aimeos/ai-controller-frontend 2019.10.3 Aimeos ai-controller-frontend extension
aimeos/ai-controller-jobs 2019.10.3 Aimeos ai-controller-jobs extension
aimeos/ai-gettext 2019.10.1 Aimeos Gettext extension
aimeos/ai-laravel 2019.10.2 Laravel adapter for Aimeos web shops and e-commerce solutions
aimeos/ai-payments 2019.10.1 Payment extension for Aimeos web shops and e-commerce solutions
aimeos/ai-swiftmailer 2019.10.1 SwiftMailer adapter for Aimeos web shops and e-commerce solutions
aimeos/aimeos-core 2019.10.5 Full-featured e-commerce components for high performance online shops
aimeos/aimeos-laravel 2019.10.1 Professional, full-featured and high performance Laravel e-commerce package for online shops and complex B2B projects
Code: Select all
composer clearcache
I ask you and hope it will be fixed soon..
Thank you!
Re: Customer manager save event
You also need: aimeos/aimeos-core 2019.10.x-dev
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
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: Customer manager save event
Yes now it works! But is I modify groups $customer->isModified() returns false; How can I check if groups were modified ? I mean add or remove groups from customer ?
I need it for all related customer objects. Yes I can loop through objects and check if object was modified for example address. But can I check if address was deleted or added to customer ? Not only address or another property. Because if for example address was deleted from customer it means customer was modified..
And can I use those versions in live project ? Those dev versions are ok ?
I need it for all related customer objects. Yes I can loop through objects and check if object was modified for example address. But can I check if address was deleted or added to customer ? Not only address or another property. Because if for example address was deleted from customer it means customer was modified..
And can I use those versions in live project ? Those dev versions are ok ?
Re: Customer manager save event
There was a setModified() call in setGroups() missing. That's fixed now.MikaelNazarenko wrote: ↑21 Nov 2019, 15:37 Yes now it works! But is I modify groups $customer->isModified() returns false; How can I check if groups were modified ? I mean add or remove groups from customer ?
Use those methods to get deleted items:MikaelNazarenko wrote: ↑21 Nov 2019, 15:37 I need it for all related customer objects. Yes I can loop through objects and check if object was modified for example address. But can I check if address was deleted or added to customer ? Not only address or another property. Because if for example address was deleted from customer it means customer was modified..
Code: Select all
$item->getAddressItemsDeleted();
$item->getListItemsDeleted();
$item->getPropertyItemsDeleted();
Yes, 2019.10.x-dev only contains the bugfixes for the LTS branch that are not yet tagged.MikaelNazarenko wrote: ↑21 Nov 2019, 15:37 And can I use those versions in live project ? Those dev versions are ok ?
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
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: Customer manager save event
Aimeos, thank you so much! It works like I wanted! )