Manufacturer image on product page

  • Andras
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 8 months ago - 8 years 8 months ago #85188 by Andras
Manufacturer image on product page was created by Andras
Hello, im trying to add the manufacturer image on the product page under the manufacturer name with the link.
Im trying to modify the following file, which is thee correct file, but image is not shown up.
/components/com_eshop/themes/fashionpro/views/product/

<?php
if (EshopHelper::getConfigValue('show_manufacturer'))
{
?>
<strong><?php echo JText::_('ESHOP_BRAND'); ?>:</strong>
<span><?php echo isset($this->manufacturer->manufacturer_name) ? $this->manufacturer->manufacturer_name : ''; ?></span>

<a href="<?php echo $viewManufacturerUrl; ?>">
<img src="<?php echo $this->manufacturer->image; ?>" /> </a>


What am i doing wrong ?
Last edit: 8 years 8 months ago by Andras.

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
8 years 8 months ago #85191 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Manufacturer image on product page
Hello Andras,

Please submit a new ticket to EShop category to send me the super admin account to your site so I can help you to implement that.

Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #85244 by Quang Nguyễn
Replied by Quang Nguyễn on topic Manufacturer image on product page
Hi Andras,
I have checked your issue. I may be edited directly on your site, but here are broken fiber, do not load com Profiles to edit code. Edited bother you help me, I think it is not difficult for you. Thanks so much.

1. components/com_eshop/helpers/helper.php
+ Find function getProductManufacturer.
+ Edit by add m.manufacturer_url, m.manufacturer_image to query select :
$query->select('m.id, m.manufacturer_email, m.manufacturer_url, m.manufacturer_image, md.manufacturer_name')

2. components/com_eshop/themes/default/views/product/default.php
+ Add manufacturer image and url by code in what you are editing:
<span><?php echo isset($this->manufacturer->manufacturer_name) ? $this->manufacturer->manufacturer_name : ''; ?></span>
<a href="<?php echo $this->manufacturer->manufacturer_url; ?>">
<img src="media/com_eshop/manufacturers/<?php echo $this->manufacturer->manufacturer_image; ?>" />
</a>

Hopefully it will be useful to you.
Regards, Quang.

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
8 years 8 months ago #85262 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Manufacturer image on product page
Hope that Quang's guide is useful :)
Sincerely, Giang

Please Log in or Create an account to join the conversation.

  • Andras
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 8 months ago #85264 by Andras
Replied by Andras on topic Manufacturer image on product page
Thank you for your support.
I was following his instructions.
I have managed to display the image, but the link its not working, takes me to the front page, inserts me in the generated HTML code <a href="/">

<a href="<?php echo $this->manufacturer->manufacturer_url; ?>">

But anyway, thanks a lot at least for the image.

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
8 years 8 months ago #85337 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Manufacturer image on product page
That's strange. Please following up the ticket to get my supports.

Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #90588 by Niels van Strien
Replied by Niels van Strien on topic Manufacturer image on product page
Hi, I also want to link to the manufacturer from the product page.

I used above steps and the image shows, but the link isn't working.

How can I show the link?

Please Log in or Create an account to join the conversation.

  • Andras
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 4 months ago #90589 by Andras
Replied by Andras on topic Manufacturer image on product page
Hello.

What i found out is that if the manufacturers module is displayed and you have exactly that manufacturer displayed in it, then the link works from the product page as well, otherwise not.

For example,
If the manufacturer module wasn't loaded at all, then this link will also not work:
www.yourdomain.com/manufacturername

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
8 years 4 months ago #90657 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Manufacturer image on product page
Hello,

This requires to modify to EShop. If any you guys need that, please submit a new ticket to EShop category to send me the super admin account to the site so we can help.

Sincerely, Giang

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong