Suggested Product selection in Product Detail

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
GagDalakyan
Posts: 17
Joined: 03 Dec 2020, 13:13

Suggested Product selection in Product Detail

Post by GagDalakyan » 18 Jan 2021, 08:01

Screenshot_1.png
Screenshot_1.png (27.22 KiB) Viewed 1597 times
Laravel : 6.20.5
Aimeos : 2020.10
PHP Version : 7.2
Environment : Windows

Hello.
Aimeos is awesome.Thanks
Suggested products in Product detail page don`t show selection product variant products.
In ListRefItems for suggested product absent product domain. How can i add this.
Sorry for bad English )

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Suggested Product selection in Product Detail

Post by aimeos » 19 Jan 2021, 10:51

It will be shown if you add this:

Code: Select all

'basket-add' => true
in your catalog/detail body template: https://github.com/aimeos/ai-client-htm ... d.php#L503

The accepted options of the partial are documented here:
https://github.com/aimeos/ai-client-htm ... php#L8-L14
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
GagDalakyan
Posts: 17
Joined: 03 Dec 2020, 13:13

Re: Suggested Product selection in Product Detail

Post by GagDalakyan » 19 Jan 2021, 11:25

Thanks for your reply.
But it still don`t work. It gives an empty map

Code: Select all

$productItem->getRefItems( 'product', 'default', 'default' );

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Suggested Product selection in Product Detail

Post by aimeos » 20 Jan 2021, 11:49

Also add this setting to retrieve one more product level:

Code: Select all

mshop/common/manager/maxdepth => 3
https://aimeos.org/docs/2020.x/config/m ... /#maxdepth

You have to adapt the styling because the standard Aimeos CSS doesn't add styles for that.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
GagDalakyan
Posts: 17
Joined: 03 Dec 2020, 13:13

Re: Suggested Product selection in Product Detail

Post by GagDalakyan » 20 Jan 2021, 14:10

Many thanks. It works

Post Reply