Jump to content

Show Manufacturer/Supplier in product


Recommended Posts

I really have no idea what I'm doing, but I think I almost have it now...

I use manufacturer for publishers and supplier for book series and I'm trying to get them to show when I view the product that have those fields set. Which really was no problem, the code below handles that.

But I'd like to make them links to a list of all items with the same publisher/supplier; so that klicking them would act as the manufacturers/suppliers blocks.

From product.tpl:

   <!-- left infos-->

   {if $product->manufacturer_name OR $product->supplier_name}



           {if $product->manufacturer_name}
{l s='Manufacturer'|escape:'htmlall':'UTF-8'}: 
getManufacturerLink($product->manufacturer_name, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}
           {/if}


   {/if}


As you may see, I've tried some things found in other files but apparently it doesn't work.

Could someone kick me into the right direction, please?

Edit: "href" seem to have fallen off my cut/paste, put it back
Edit2: Hmm, won't stick... " above should be a a href='
Edit3: I'm a bit tired...
Should be a href='{$link-'>

Share this post


Link to post
Share on other sites
  • 3 months later...
  • 2 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More