Page 1 of 1

set special offer with lower price for at a limited time?

Posted: 14 Oct 2017, 10:38
by Ahmad
i want to determine some product as Special Offers with a special and lower prices, customers just can order this
products in a specific and limited time,
I show list of this product is home page as Special Offers.
how can I implement it with aimeos-laravel?

Re: set special offer with lower price for at a limited time

Posted: 14 Oct 2017, 17:26
by aimeos
You can limit the product to a certain time frame by setting a start and end date for the product in the admin interface.

Re: set special offer with lower price for at a limited time

Posted: 20 Oct 2017, 00:25
by Ahmad
i want to set a flag like special sale for product and get products with this flag and show them in home page,
can i do this now?

Re: set special offer with lower price for at a limited time

Posted: 23 Oct 2017, 11:37
by aimeos
Adds these products to the root category. You can then add a new "home" page (https://github.com/aimeos/aimeos-larave ... op.php#L16) using "catalog/lists" component. In the action of your controller for the home page, retrieve the list view like here: https://github.com/aimeos/aimeos-larave ... er.php#L58

Re: set special offer with lower price for at a limited time

Posted: 11 Nov 2017, 22:21
by Ahmad
aimeos wrote:Adds these products to the root category. You can then add a new "home" page (https://github.com/aimeos/aimeos-larave ... op.php#L16) using "catalog/lists" component. In the action of your controller for the home page, retrieve the list view like here: https://github.com/aimeos/aimeos-larave ... er.php#L58
You did not answer my original question...!
i want to determine some product as Special Offers with a special and lower prices, customers just can order this
products in a specific and limited time,
I show list of this product is home page as Special Offers.

your answer just show products like /list page but in another page...
please if you can help me...do not just give a general answer

Re: set special offer with lower price for at a limited time

Posted: 12 Nov 2017, 11:52
by aimeos
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-Aim ... 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'] );

Re: set special offer with lower price for at a limited time

Posted: 12 Nov 2017, 12:52
by Ahmad
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-Aim ... 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.

Re: set special offer with lower price for at a limited time

Posted: 13 Nov 2017, 15:36
by aimeos
You have to understand that Aimeos isn't working with x flags for this and that.

Instead, you have three options to "mark" product as special:
- Add them to a "sepecial" category (discount, topseller, etc., usually the best option)
- Add a property to that product, e.g. type "special" and value "discount" where you can search for
- Add an attribute with same type/value to that product instead of a property

Iin the last case, your users will automatically be able to filter for these types if you add it to the allowed configuration for faceted search.

For time limited offers, please set the start and end date for that products in the admin interface.