Search found 10 matches
- 25 Jun 2021, 10:22
- Forum: Help
- Topic: Get all items products
- Replies: 1
- Views: 4168
Get all items products
For example : I get a product by id with method get() $id = 10; $context = app()->make('\Aimeos\Shop\Base\Context')->get(); $manager = \Aimeos\MShop::create( $context, 'product' ); $item = $manager->get( $id, ['text', 'media', 'price'] ); dd($item) What method can I use to get all the items products?
- 22 Jun 2021, 10:08
- Forum: Help
- Topic: Class 'Aimeos\MShop\Factory' not found
- Replies: 2
- Views: 3820
Re: Class 'Aimeos\MShop\Factory' not found
Then I can write this
$context = app()->make('\Aimeos\Shop\Base\Context')->get();
$manager = \Aimeos\MShop::create($context, 'product');
What method can I use on the $manager object to retrieve all created products?
My objective is to recover all the products created
$context = app()->make('\Aimeos\Shop\Base\Context')->get();
$manager = \Aimeos\MShop::create($context, 'product');
What method can I use on the $manager object to retrieve all created products?
My objective is to recover all the products created
- 22 Jun 2021, 07:33
- Forum: Help
- Topic: Class 'Aimeos\MShop\Factory' not found
- Replies: 2
- Views: 3820
Class 'Aimeos\MShop\Factory' not found
$total=100; $context = app()->make('\Aimeos\Shop\Base\Context')->get(); $manager = \Aimeos\MShop\Factory::createManager($context, 'product'); $search = $manager->createSearch(true); $items = $manager->searchItems($search, ['text', 'price', 'media', 'attribute', 'product'],$total); I want to get the ...
- 04 Jun 2021, 08:43
- Forum: Help
- Topic: Configuration of the partial method
- Replies: 3
- Views: 3333
Re: Configuration of the partial method
thank you for your answer.
I notice that on the home page it is the products in promotion that are display.
Now if want to display all the latest products without exception
I notice that on the home page it is the products in promotion that are display.
Now if want to display all the latest products without exception
- 01 Jun 2021, 17:12
- Forum: Help
- Topic: Configuration of the partial method
- Replies: 3
- Views: 3333
Configuration of the partial method
<?= $this->partial($this->config('client/html/common/partials/products', 'common/partials/products-standard' ), [ 'products' => $products ] ) ?> If I understand this script correctly, it allows to get the variable products in the file products-standard.php. Now I want to get this same variable produ...
- 26 May 2021, 22:02
- Forum: Help
- Topic: New extension
- Replies: 2
- Views: 1492
Re: New extension
I thank you for your answer. I will do as you suggested
- 23 May 2021, 15:46
- Forum: Help
- Topic: New extension
- Replies: 2
- Views: 1492
New extension
I created a new extension. Now I want for example to have access to some variables from "ext/myextname/client/html/template/home" like $products = $this->homeTree->getRefItems( 'product', null, 'promotion' ). I tried but I get the error: Undefined property: Facade\Ignition\Views\Engines\Co...
- 19 May 2021, 08:01
- Forum: Help
- Topic: how can i get all the products? my file extension is .blade
- Replies: 1
- Views: 1107
how can i get all the products? my file extension is .blade
I have totally customized the main page. I work with .blade extension and as usual I send the variable products by view in my controller.
How can I access this products variable in my view? please help me
How can I access this products variable in my view? please help me
- 13 May 2021, 13:04
- Forum: Help
- Topic: rewrite or new template
- Replies: 3
- Views: 1216
Re: rewrite or new template
Hi,
I am very happy for your answer and I thank you. I made some text changes in the file(ai-client-html/client/html/templates/catalog/home/body-standard.php/) but I don't see the change on the screen and also I tried to clear the caches and views.
I am very happy for your answer and I thank you. I made some text changes in the file(ai-client-html/client/html/templates/catalog/home/body-standard.php/) but I don't see the change on the screen and also I tried to clear the caches and views.
- 10 May 2021, 05:49
- Forum: Help
- Topic: rewrite or new template
- Replies: 3
- Views: 1216
rewrite or new template
Hello community This is my first day with aimeos in laravel. After the installation and configuration and in my browser everything works perfectly. But my project that I want to work on has a completely different homepage than the default page of aimeos. As usual with laravel I did everything in the...