Suggested Product selection in Product Detail
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- GagDalakyan
- Posts: 17
- Joined: 03 Dec 2020, 13:13
Suggested Product selection in Product Detail
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 )
Re: Suggested Product selection in Product Detail
It will be shown if you add this:
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
Code: Select all
'basket-add' => true
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, give us a star
If you like Aimeos, give us a star
- GagDalakyan
- Posts: 17
- Joined: 03 Dec 2020, 13:13
Re: Suggested Product selection in Product Detail
Thanks for your reply.
But it still don`t work. It gives an empty map
But it still don`t work. It gives an empty map
Code: Select all
$productItem->getRefItems( 'product', 'default', 'default' );
Re: Suggested Product selection in Product Detail
Also add this setting to retrieve one more product level:
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.
Code: Select all
mshop/common/manager/maxdepth => 3
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, give us a star
If you like Aimeos, give us a star
- GagDalakyan
- Posts: 17
- Joined: 03 Dec 2020, 13:13
Re: Suggested Product selection in Product Detail
Many thanks. It works