Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Manufacturers logo on Product Info pages - How To?

Manufacturers logo on Product Info pages - How To?

Locked

Started by still_crazy on 4 Aug 2007, 9:10 AM · Views: 1,849

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
4 Aug 2007, 9:10 AM
#1
still_crazy avatar

still_crazy

New Zenner

Join Date:
Sep 2006
Location:
Derby UK
Posts:
97
Plugin Contributions:
0

Manufacturers logo on Product Info pages - How To?

I've seen variations of this question asked before, but can't find the solution. If its here somewhere and I've missed it I'm sorry!

I have been trying to display the manufacturers logo on the product info page [not in the sidebox] directly below the Model: and Manufactured By: text but I'm not having any success. The only answers I've been able to find refer to adding/modifying code, but nothing I have tried so far has worked ['though I have been able to mess it up big time]!

Can someone kindly point me in the right direction.

Many thanks.

Crazy


4 Aug 2007, 10:06 AM
#2
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Manufacturers logo on Product Info pages - How To?

I'm no expert, but I've just done a quick experiment and this works....take the code from includes/templates/sideboxes/tpl_manufacturer_info.php and extract the bits you want... as a minimum you need:

<?php 
echo zen_image(DIR_WS_IMAGES . $manufacturer_info_sidebox->fields['manufacturers_image'], $manufacturer_info_sidebox->fields['manufacturers_name']);
?>

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

4 Aug 2007, 10:26 AM
#3
still_crazy avatar

still_crazy

New Zenner

Join Date:
Sep 2006
Location:
Derby UK
Posts:
97
Plugin Contributions:
0

Re: Manufacturers logo on Product Info pages - How To?

Hi Ryk.

I had already tried using the Manufacturers sidebox as a starting point, but have again tried the code you suggest above.

All I am able to get is the "Sorry No Image Available" image. I guess the code is just calling the image from the wrong location, but that's the bit I can't fathom.

Thanks for your help.

Crazy


4 Aug 2007, 10:59 AM
#4
still_crazy avatar

still_crazy

New Zenner

Join Date:
Sep 2006
Location:
Derby UK
Posts:
97
Plugin Contributions:
0

Re: Manufacturers logo on Product Info pages - How To?

Ok, I've now managed to solve this with the help of this thread, which I had found before but couldn't make it work. http://www.zen-cart.com/forum/showthread.php?t=38748&highlight=display+manufacturers+logo

Several cups of coffee may have also helped.

Posting a question is always a last resort, but it's surprising how many times you can solve the problem yourself after posting.

Thanks again for your help.

Crazy


4 Aug 2007, 1:51 PM
#5
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Manufacturers logo on Product Info pages - How To?

Still Crazy:

Hi Ryk.

All I am able to get is the "Sorry No Image Available" image. I guess the code is just calling the image from the wrong location, but that's the bit I can't fathom.

Thanks for your help.

I know you've solved it, but I had the above problem when first I tried it on my test site...because there were no images in the images/manufacturer directory

It certainly did work when tried on the live site where manufacturer details/images had been correctly added and placed.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !