Search found 274 matches
- 22 Jul 2019, 13:04
- Forum: Help
- Topic: How to add additional fields to a customer
- Replies: 66
- Views: 36323
Re: How to add additional fields to a customer
Thank you, buddy! But as I understand exactly for customer I only need this: 'laravel' => array( 'delete' => array( 'ansi' => ' DELETE FROM "users" WHERE :cond ', ), 'insert' => array( 'ansi' => ' INSERT INTO "users" ( "siteid", "name", "email", &quo...
- 22 Jul 2019, 12:51
- Forum: Help
- Topic: How to add additional fields to a customer
- Replies: 66
- Views: 36323
Re: How to add additional fields to a customer
Hello everybody! I am extending customer. Seems everything is clear. But can anybody, please, tell me if I can find somewhere the example of ./ext/myextension/lib/custom/config/mshop.php exactly for the Customer ? I think it must exists somewhere in Aimeos core. Because there is complex query for se...
- 17 Jul 2019, 16:07
- Forum: Laravel package
- Topic: How to search entities ?
- Replies: 11
- Views: 3987
Re: How to search entities ?
Great thank you! But here I am also afraid for one thing. The following code must collect all ids of media I need: $items = $customerListsManager->searchItems($search); $mediaIds = []; foreach ($items as $item) { $mediaIds[] = $item->getRefId(); } But is there any limit for entities count ? Because ...
- 17 Jul 2019, 11:43
- Forum: Laravel package
- Topic: How to search entities ?
- Replies: 11
- Views: 3987
Re: How to search entities ?
Hmm, honestly after using ActiveRecord and Repository pattern this approach is new for me and for now not very useful. I have idea how to solve my problem. Firstly I get customer media list and then I get media ids. Then I can get exact media by their ids. Code looks like this: /** @var \Aimeos\MSho...
- 17 Jul 2019, 11:03
- Forum: Laravel package
- Topic: How to search entities ?
- Replies: 11
- Views: 3987
Re: How to search entities ?
Do you mean this method ?
https://github.com/aimeos/ai-admin-jqad ... d.php#L288
Strange, why I can't get refItem from my first post in this topic
https://github.com/aimeos/ai-admin-jqad ... d.php#L288
Strange, why I can't get refItem from my first post in this topic
- 17 Jul 2019, 10:43
- Forum: Laravel package
- Topic: How to search entities ?
- Replies: 11
- Views: 3987
Re: How to search entities ?
Ok, but please, take a look at the screenshot: https://prnt.sc/og8258 This I meant about filters. I want to be able to filter and sort entities. As I understand your approach will look ugly if I want implement filtering and sorting. Because it will not create right sql query to filter entities at on...
- 17 Jul 2019, 10:27
- Forum: Laravel package
- Topic: How to search entities ?
- Replies: 11
- Views: 3987
How to search entities ?
My environment is the following: Laravel Framework 5.8.26 aimeos-laravel 2019.04 PHP Version 7.2.19-1+ubuntu18.04.1+deb.sury.org+1 In the users_list table I have several rows with domain = media. In other words some user has several media attached to his. My goal is to find all media of specific use...
- 16 Jul 2019, 17:10
- Forum: Laravel package
- Topic: How to add own action to admin ?
- Replies: 1
- Views: 836
How to add own action to admin ?
My environment is the following: Laravel Framework 5.8.26 aimeos-laravel 2019.04 PHP Version 7.2.19-1+ubuntu18.04.1+deb.sury.org+1 As I see \Aimeos\Shop\Controller\JqadmController has several actions like 'get', 'search' and other. I need implement my own action 'download'. And this action must send...
- 16 Jul 2019, 15:02
- Forum: Laravel package
- Topic: How to attach files to user by code ?
- Replies: 10
- Views: 3322
Re: How to attach files to user by code ?
Ahhhhh! )) I have figured out it 3 minutes before you answered) Thank you a lot ! But is there a difference about clashes ? Should I use domains with slashes like this ? $domains = ['customer/address', 'customer/group', 'customer/property', 'media']; As you see I added just 'media', but not 'custome...
- 16 Jul 2019, 13:52
- Forum: Laravel package
- Topic: How to attach files to user by code ?
- Replies: 10
- Views: 3322
Re: How to attach files to user by code ?
Hmmmm( I have added Customer Lists Type for customer - media. when I add media to user entities in DB are created: users_list table: https://prnt.sc/ofsujj mshop_media table: https://prnt.sc/ofsvba But media doesn't appear in the customer media tab! https://prnt.sc/ofsw0c When I dump my \Aimeos\MSho...