Search found 35 matches

by AmzoooJibal
19 Jul 2021, 13:53
Forum: Laravel package
Topic: Search produc by codes
Replies: 5
Views: 8636

Search produc by codes

Hello, i dont understand why this method not working as expected: $codes = [ 0 => "demo-article", 1 => "demo-selection-article-2", 2 => "demo-selection-article-1", ]; $context = $this->getContext(); $config = $context->getConfig(); $domains = [ 'attribute', 'media', 'me...
by AmzoooJibal
24 Jun 2021, 18:09
Forum: Laravel package
Topic: Pass param to Block subpart
Replies: 1
Views: 2307

Pass param to Block subpart

Hello,
there is any way to pass parametre to the block template like this:

<?= $this->block()->get('home/section',['code'=>'value']);
by AmzoooJibal
04 Jun 2021, 17:05
Forum: Laravel package
Topic: Function to get file from store
Replies: 4
Views: 1724

Re: Function to get file from store

Yeh Great it work as expected, thank you ;)
by AmzoooJibal
03 Jun 2021, 18:02
Forum: Laravel package
Topic: Function to get file from store
Replies: 4
Views: 1724

Re: Function to get file from store

i get an exception with get(), i searched in project i have found view object is instantieted like this:

app( 'aimeos.view' )->create( $context, $tmplPaths, $langid ) ?
by AmzoooJibal
01 Jun 2021, 11:10
Forum: Laravel package
Topic: Function to get file from store
Replies: 4
Views: 1724

Function to get file from store

hello, i have created a helper file in laravel project with this function that return the file from store like this: function file_from_store($path): string { $context = app('aimeos.context')->get(); $config = $context->getConfig(); $baseUrl = $config->get('resource/fs/baseurl'); $view = new \Aimeos...
by AmzoooJibal
29 Apr 2021, 09:48
Forum: Laravel package
Topic: Two site with different theme
Replies: 1
Views: 1014

Re: Two site with different theme

Ok so found response : Is the home page loaded only for admin (default) site ? Yes Where is the first page loaded when i access to www.site1.com or www.site2.com ? catalog.list How i can get the site ID from laravel service providers or in view ? Route::current()->parameter('site','default')
by AmzoooJibal
28 Apr 2021, 17:19
Forum: Laravel package
Topic: Two site with different theme
Replies: 1
Views: 1014

Two site with different theme

Hello, i have enabled multisite and i want to customize those tow site (www.site1.com and www.site2.com) for that i have 3 question: Is the home page loaded only for admin (default) site ? Where is the first page loaded when i access to www.site1.com or www.site2.com ? How i can get the site ID from...
by AmzoooJibal
27 Apr 2021, 17:00
Forum: Laravel package
Topic: Get the list of properties in media
Replies: 4
Views: 1729

Re: Get the list of properties in media

Thank you for you response. It's a little complicated aimeos object. With laravel Eloquent its easy to get child from parent even if the relation isnt loaded initially. my question in home page i have a product object (Aimeos\MShop\Product\Item\Standard) and i need to access the variant product from...
by AmzoooJibal
22 Apr 2021, 11:12
Forum: Laravel package
Topic: Get the list of properties in media
Replies: 4
Views: 1729

Re: Get the list of properties in media

Is Like this:

Code: Select all

   $this->homeTree->getListItem('media','default',$mediaItem->getId())->getConfig();
by AmzoooJibal
22 Apr 2021, 10:43
Forum: Laravel package
Topic: Get the list of properties in media
Replies: 4
Views: 1729

Get the list of properties in media

Hello, i need to get the list of properties in media domaine inside advanced section in catalog. I have a catalog with list of media for the catalog i can do: $homeTree->getConfig() Then to get the media: ($mediaItems = $this->homeTree->getRefItems('media', 'stage', 'default'))->isEmpty()) Now for e...