Access Supplier Media in Catalog Detail page
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!
-
- Posts: 40
- Joined: 02 Dec 2021, 17:18
Access Supplier Media in Catalog Detail page
I have added text and a media to a particular supplier from admin panel and I need to display them in a Catalog Detail page on front end....
Please help me to access them
TIA![Lächeln :)](./images/smilies/icon_e_smile.gif)
How to access them I am not getting...Please help me to access them
TIA
![Lächeln :)](./images/smilies/icon_e_smile.gif)
Re: Access Supplier Media in Catalog Detail page
In the catalog detail page, you have access to the supplier and related data using:
Code: Select all
foreach( $this->detailProductItem->getRefItems( 'supplier' ) as $supplier )
{
foreach( $supplier->getRefItems( 'media' ) as $media ) {
// $media->getUrl()
}
foreach( $supplier->getRefItems( 'text' ) as $text ) {
// $text->getContent()
}
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
![Image](https://aimeos.org/fileadmin/aimeos.org/icons/star.png)