[Skip to main content](#vessel-content)

#   Re: Displaying manufacturer's picture on product page?

##

- **[pproject](/forum/user/1480-pproject "View pproject's Profile")**
- [![pproject's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1480-pproject "View pproject's Profile") Topic Author
- [ Offline](/forum/user/1480-pproject)

Less More

- Posts: 16
- Thank you received: 0
-
-

15 years 4 months ago [\#20324](#20324) by [pproject](/forum/user/1480-pproject "View pproject's Profile")  *[Displaying manufacturer's picture on product page?](/forum/4-how-to/20324-re-displaying-manufacturers-picture-on-product-page#20324 "Hi Nicolas,  I have tried to modify Display&gt; Product &gt; show file, according to display the picture which belongs to manufacturer, but I'm really frustrated. I can't get product&#95;manufacturer&#95;id from database which only connect to parent&#95;product and if I change the variant, id is zero, so still I should use parent&#95;product. Any hint would be highly appreciated. My PHP knowledge very limited. Thanks in advance.")* was created by *[pproject](/forum/user/1480-pproject "View pproject's Profile")*

Hi Nicolas,

I have tried to modify Display&gt; Product &gt; show file, according to display the picture which
belongs to manufacturer, but I'm really frustrated. I can't get product_manufacturer_id from
database which only connect to parent_product and if I change the variant, id is zero, so still I should
use parent_product.
Any hint would be highly appreciated. My PHP knowledge very limited.
Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwMzI0LXJlLWRpc3BsYXlpbmctbWFudWZhY3R1cmVycy1waWN0dXJlLW9uLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

15 years 4 months ago [\#20335](#20335) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Displaying manufacturer's picture on product page?](/forum/4-how-to/20324-re-displaying-manufacturers-picture-on-product-page#20335 "Hi Nicolas,  I have tried to modify Display&gt; Product &gt; show file, according to display the picture which belongs to manufacturer, but I'm really frustrated. I can't get product&#95;manufacturer&#95;id from database which only connect to parent&#95;product and if I change the variant, id is zero, so still I should use parent&#95;product. Any hint would be highly appreciated. My PHP knowledge very limited. Thanks in advance.")*

Hi,

If you use variants, you should be able to find the manufacturer id in $this-&gt;element-&gt;main-&gt;product_manufacturer_id

However, loading the image of the manufacturer on the product page is not easy as you first need to load the image information from the database before being able to use it to display the image.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwMzI0LXJlLWRpc3BsYXlpbmctbWFudWZhY3R1cmVycy1waWN0dXJlLW9uLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[pproject](/forum/user/1480-pproject "View pproject's Profile")**
- [![pproject's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1480-pproject "View pproject's Profile") Topic Author
- [ Offline](/forum/user/1480-pproject)

Less More

- Posts: 16
- Thank you received: 0
-
-

15 years 4 months ago [\#20365](#20365) by [pproject](/forum/user/1480-pproject "View pproject's Profile")  Replied by *[pproject](/forum/user/1480-pproject "View pproject's Profile")* on topic *[Re: Displaying manufacturer's picture on product page?](/forum/4-how-to/20324-re-displaying-manufacturers-picture-on-product-page#20365 "Hi Nicolas,  I have tried to modify Display&gt; Product &gt; show file, according to display the picture which belongs to manufacturer, but I'm really frustrated. I can't get product&#95;manufacturer&#95;id from database which only connect to parent&#95;product and if I change the variant, id is zero, so still I should use parent&#95;product. Any hint would be highly appreciated. My PHP knowledge very limited. Thanks in advance.")*

Thanks your help Nicolas! Finally I could manage that.

&lt;div id="hikashop_product_manufacturer" class="hikashop_product_manufacturer"&gt;
&lt;?php if(isset($this-&gt;element-&gt;main-&gt;product_manufacturer_id) &amp;&amp; bccomp($this-&gt;element-&gt;main-&gt;product_manufacturer_id,0,3)){
$man_id = $this-&gt;element-&gt;main-&gt;product_manufacturer_id ;
$database =&amp; JFactory::getDBO();
$query1 = 'SELECT file_path FROM '.hikashop_table('file').' WHERE file_ref_id IN ('.$man_id.') AND file_type IN (\'category\')';
$database-&gt;setQuery($query1);
$man_file_name = $database-&gt;loadResult();
echo $this-&gt;image-&gt;display($man_file_name) ;
}
?&gt;
&lt;/div&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwMzI0LXJlLWRpc3BsYXlpbmctbWFudWZhY3R1cmVycy1waWN0dXJlLW9uLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[amaurice](/forum/user/60055-amaurice "View amaurice's Profile")**
- [![amaurice's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60055-amaurice "View amaurice's Profile")
- [ Offline](/forum/user/60055-amaurice)

Less More

- Posts: 20
- Thank you received: 3
-
-

6 years 1 week ago [\#325935](#325935) by [amaurice](/forum/user/60055-amaurice "View amaurice's Profile")  Replied by *[amaurice](/forum/user/60055-amaurice "View amaurice's Profile")* on topic *[Re: Displaying manufacturer's picture on product page?](/forum/4-how-to/20324-re-displaying-manufacturers-picture-on-product-page#325935 "Hi Nicolas,  I have tried to modify Display&gt; Product &gt; show file, according to display the picture which belongs to manufacturer, but I'm really frustrated. I can't get product&#95;manufacturer&#95;id from database which only connect to parent&#95;product and if I change the variant, id is zero, so still I should use parent&#95;product. Any hint would be highly appreciated. My PHP knowledge very limited. Thanks in advance.")*

Hello, can you please tell me where did you place this code ?
Thank you !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwMzI0LXJlLWRpc3BsYXlpbmctbWFudWZhY3R1cmVycy1waWN0dXJlLW9uLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

6 years 1 week ago [\#325942](#325942) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: Displaying manufacturer's picture on product page?](/forum/4-how-to/20324-re-displaying-manufacturers-picture-on-product-page#325942 "Hi Nicolas,  I have tried to modify Display&gt; Product &gt; show file, according to display the picture which belongs to manufacturer, but I'm really frustrated. I can't get product&#95;manufacturer&#95;id from database which only connect to parent&#95;product and if I change the variant, id is zero, so still I should use parent&#95;product. Any hint would be highly appreciated. My PHP knowledge very limited. Thanks in advance.")*

Hello,

He modified files of the "product" view via "Hikashop-&gt;Display-&gt;Views", for more information :
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

Note that this thread is 9 years old, so the code in this thread will probably not be valid anymore for what you want to achieve.

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwMzI0LXJlLWRpc3BsYXlpbmctbWFudWZhY3R1cmVycy1waWN0dXJlLW9uLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.064 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
