aimeos wrote:If you don't want to use the existing "catalog/lists" component for this, you can retrieve the products using the product controller (https://aimeos.org/api/latest/class-Aimeos.Controller.Frontend.Product.Iface.html) and add the objects to the Blade view. Then, you have to care about the rendering yourself:
Code: Select all
$context = $this->app->make('\Aimeos\Shop\Base\Context')->get();
$cntl = \Aimeos\Controller\Frontend\Factory::createController( $context, 'product' );
$filter = $filter->addFilterCategory( $cntl->createFilter(), <catid> );
$items = $cntl->searchItems( $filter, ['text', 'price', 'media'] );
yes i don't want to use existing "catalog/lists" component but you don't help me about how can set a product special offer for a limited time
I would appreciate if you can read my request again
I will explain with an example:
i create a product with price 100$
now i want to sell this product from January 2nd 2018 to January 7th 2018 with a price 50$ and with a sign(flag) indicating that this product is sold specially
First Question is how What should I do to do this?
after that i want to get list of this marked products as special sales with using the product controller as an array,
Actually, suppose it's January 2nd and I want to get the list of products that are sold specially and show the user
I know I will be bothering you, but thank you for telling me how to do it.