Search found 27 matches

by Dinver
24 Nov 2020, 08:35
Forum: Laravel package
Topic: add review to the product
Replies: 3
Views: 1821

Re: add review to the product

There's a configurable time limit after which customers can review products to avoid fake reviews: https://github.com/aimeos/ai-client-html/blob/febc845d539c4546584879cbf3d8581fae65a806/client/html/src/Client/Html/Account/Review/Todo/Standard.php#L245-L256 I set time limit 1 day, but reviews not vi...
by Dinver
23 Nov 2020, 15:08
Forum: Help
Topic: favorite icon
Replies: 9
Views: 3457

Re: favorite icon

Use the jQuery example from the docs: var url = response['links']['customer/relationships']['href']; // from customer response var args = {include: "product"}; var params = {}; if(options.meta.prefix) { // returned from OPTIONS call params[options.meta.prefix] = args; } else { params = ar...
by Dinver
20 Nov 2020, 07:42
Forum: Help
Topic: favorite icon
Replies: 9
Views: 3457

Re: favorite icon

aimeos wrote: 18 Nov 2020, 08:05 You may use the JSON REST API to check if the product is in the customers favorite list:
https://aimeos.org/docs/latest/frontend ... relations/
How get customers favorite list, in template?
by Dinver
16 Nov 2020, 13:08
Forum: Help
Topic: favorite icon
Replies: 9
Views: 3457

Re: favorite icon

You can enable/disable them using this configuration: https://aimeos.org/docs/2020.x/config/client-html/catalog-actions/#list Add new ones in your own version of this template: https://github.com/aimeos/ai-client-html/blob/master/client/html/templates/catalog/actions-partial-standard.php I edited t...
by Dinver
15 Nov 2020, 10:59
Forum: Help
Topic: favorite icon
Replies: 9
Views: 3457

favorite icon

Hi, there is simple way set favorite/watch icon (on / off), how on ebay or aliexpress?

Image
by Dinver
10 Nov 2020, 11:40
Forum: Help
Topic: Catalog media get configuration options
Replies: 4
Views: 1777

Re: Catalog media get configuration options

Check if $this->homeTree->getListItems( 'media' ) returns an image at all. If not, the images are not loaded at all and there's something wrong. The code that loads the categories and their images is here: https://github.com/aimeos/ai-client-html/blob/master/client/html/src/Client/Html/Catalog/Home...
by Dinver
09 Nov 2020, 06:50
Forum: Help
Topic: Catalog media get configuration options
Replies: 4
Views: 1777

Re: Catalog media get configuration options

aimeos wrote: 07 Nov 2020, 08:18

Code: Select all

$product->getListItems( 'media', 'default', 'stage' )
I need home page, $product no value

Code: Select all

$this->homeTree->getListItems( 'media', 'default', 'stage' )
returns an empty array.
by Dinver
07 Nov 2020, 15:28
Forum: Help
Topic: Price format
Replies: 2
Views: 1140

Re: Price format

The number format is created by a view helper which has a second parameter for the number of decimals: $this->number( 100, 2 ) You have find the implementation here: https://github.com/aimeos/aimeos-core/blob/master/lib/mwlib/src/MW/View/Helper/Number/Locale.php Thank you very much for your help! :)
by Dinver
04 Nov 2020, 14:21
Forum: Help
Topic: Catalog media get configuration options
Replies: 4
Views: 1777

Catalog media get configuration options

Hi! I wanted to do slider of catalog media. How i can get configuration options? https://i.ibb.co/7JF6Bph/00.jpg Dump does not contain this data. Aimeos\MShop\Media\Item\Standard {#2087 ▼ -langid: "ru" -prefix: "media." -available: true -modified: false #bdata: array:14 [▼ "...
by Dinver
04 Nov 2020, 11:14
Forum: Help
Topic: Price format
Replies: 2
Views: 1140

Price format

Hello, how can prices format be set with 100,00 on 100?