Search found 274 matches

by MikaelNazarenko
16 Jul 2019, 13:37
Forum: Laravel package
Topic: How to attach files to user by code ?
Replies: 10
Views: 3306

Re: How to attach files to user by code ?

Also I have figured out, that products have 'Product Lists Types' and there is 'media' type! Seems I have to add media type for users ? Because I attached files to user but I can't get them! I can't get files of specific user. I see only 'group' list type for user
by MikaelNazarenko
16 Jul 2019, 09:42
Forum: Laravel package
Topic: How to attach files to user by code ?
Replies: 10
Views: 3306

Re: How to attach files to user by code ?

I have fixed error and seems media is adding correctly. The code is: /** @var \Aimeos\MShop\Media\Item\Standard $mediaItem */ $mediaItem = \Aimeos\MShop::create( $context, 'media' )->createItem(); $mediaItem->setUrl($filePath); $mediaItem->setType('default'); $mediaManager->saveItem($mediaItem); $cu...
by MikaelNazarenko
15 Jul 2019, 16:26
Forum: Laravel package
Topic: How to attach files to user by code ?
Replies: 10
Views: 3306

Re: How to attach files to user by code ?

Hmm, I have changed the code: $listItem = $customerManager->createListsItem()->setRefId( $mediaItem->getId() ); But I still get error: Aimeos\MShop\Exception : Unable to call method "createListsItem" at /var/www/labor/vendor/aimeos/aimeos-core/lib/mshoplib/src/MShop/Common/Manager/Base.php...
by MikaelNazarenko
15 Jul 2019, 15:55
Forum: Laravel package
Topic: How to attach files to user by code ?
Replies: 10
Views: 3306

Re: How to attach files to user by code ?

I am very thankful for your help! But I am trying to attach file to the user and I am getting error, the main code looks like: $context = $this->getLaravel()->make( 'Aimeos\Shop\Base\Context' )->get( false, 'command' ); $context->setEditor( 'aimeos:account' ); $localeManager = \Aimeos\MShop::create(...
by MikaelNazarenko
15 Jul 2019, 10:12
Forum: Laravel package
Topic: How to attach files to user by code ?
Replies: 10
Views: 3306

How to attach files to user by code ?

Hi, guys! While I am going deeply into Aimeos i need more custom things to do. Here I need to ask you, probably it will be faster than I figure out it by myself. Also, I hope, my questions will be useful for somebody. My environment is the following: Laravel Framework 5.8.26 aimeos-laravel 2019.04 P...
by MikaelNazarenko
14 Jul 2019, 19:04
Forum: Laravel package
Topic: How to implement new entity into Aimeos admin panel ?
Replies: 1
Views: 1554

How to implement new entity into Aimeos admin panel ?

Hi, everybody, thank you for help. 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 I build a project with Laravel+Aimeos and here I need to make a lot of customizations with aimeos admin panel. I have implemented file...
by MikaelNazarenko
09 Jul 2019, 13:57
Forum: Laravel package
Topic: How to add user to group by code ?
Replies: 2
Views: 1431

Re: How to add user to group by code ?

This is the way how do I do it: $context = $this->getLaravel()->make( 'Aimeos\Shop\Base\Context' )->get( false, 'command' ); $context->setEditor( 'aimeos:account' ); $localeManager = \Aimeos\MShop::create( $context, 'locale' ); $localeItem = $localeManager->bootstrap( 'default', '', '', false ); $co...
by MikaelNazarenko
09 Jul 2019, 12:04
Forum: Laravel package
Topic: How to add user to group by code ?
Replies: 2
Views: 1431

How to add user to group by code ?

Ubuntu 18.04 PHP 7.2 "aimeos/aimeos-laravel": "^2019.04" Laravel: 5.8 I create user by code: $user = new App\User([ 'id_customer' => $id_customer, 'id_customer_ref' => $id_customer_ref, 'firstname' => $firstname, 'lastname' => $lastname, 'email' => $email ]); But how can I add us...
by MikaelNazarenko
01 Jul 2019, 11:57
Forum: Laravel package
Topic: How to change customer fields in admin ?
Replies: 1
Views: 1046

How to change customer fields in admin ?

Hello everybody! I customize Laravel Aimeos admin panel and implement some kind of profile. Then each user who logged in to admin panel, he may see own profile and edit it. I created own extension and did it well as described. For profile I copied Customer menu tab, I only changed it that user can e...
by MikaelNazarenko
01 Jul 2019, 09:32
Forum: Laravel package
Topic: How to change default 'search' action in admin tab ?
Replies: 6
Views: 2716

Re: How to change default 'search' action in admin tab ?

To overwrite navbar items everyone should edit ./config/shop.php as follow: 'admin' => [ 'jqadm' => [ 'navbar' => [ 'dashboard', 'profile', 'documents' ], 'resource' => [ 'profile' => [ /** admin/jqadm/resource/product/groups * List of user groups that are allowed to access the product panel * * @pa...