View Single Post
  #9  
Old 07-09-2007, 05:59 PM
 
buck buck is offline
 

Member
  
Join Date: Apr 2007
Location: Calgary, Alberta, Canada
Posts: 25
 

Default Re: Need manufacturer link to open in new window

Hi Danielle,

I tried to incorporate in my code, but it didn't work. Here is my code. Can you tell why it won't work for me?

Code:
{* $Id: customer_manufacturer_products.tpl,v 1.12 2005/12/29 08:43:52 max Exp $ *} {if $manufacturer.is_image eq 'Y' || $manufacturer.descr ne '' || $manufacturer.url ne ''} <table> <tr> {if $manufacturer.is_image eq 'Y'} {* NEW CODE*} <TD valign="top">{if $manufacturer.url ne ''}{/if}[img]{$xcart_web_dir}/mlogo.php?manufacturerid={$manufacturer.manufactur erid}[/img]{if $manufacturer.url ne ''}{/if}</TD> {elseif $manufacturer.url ne ''} <TD>{$lng.lbl_url}: {$manufacturer.url}</TD> {* END NEW CODE*} {* replaced code to open new window with manufacturer's logo <td valign="top">{if $manufacturer.url ne ''}<a href="{$manufacturer.url}">{/if}<img src="{if $manufacturer.image_path ne ''}{$manufacturer.image_path}{else}{$xcart_web_dir}/image.php?id={$manufacturer.manufacturerid}&amp;type=M{/if}" alt="{$manufacturer.manufacturer|escape}" />{if $manufacturer.url ne ''}</a>{/if}</td> {elseif $manufacturer.url ne ''} <td>{$lng.lbl_url}: <a href="{$manufacturer.url}">{$manufacturer.url}</a></td> *} </tr> <tr> {/if} <td valign="top">{$manufacturer.descr}</td> </tr> </table> <br /> {/if} {capture name=dialog} {if $products ne ''} {if $sort_fields} <div align="right">{include file="main/search_sort_by.tpl" url="manufacturers.php?manufacturerid=`$manufacturer.manufacturerid`&page=`$navigation_page`&" sort_fields=$sort_fields selected=$sort direction=$sort_direction}</div> <br /> {/if} { include file="customer/main/navigation.tpl" } {include file="customer/main/products.tpl" products=$products} {else} {$lng.txt_no_products_in_man} {/if} {/capture} {include file="dialog.tpl" title=$manufacturer.manufacturer content=$smarty.capture.dialog extra='width="100%"'} { include file="customer/main/navigation.tpl" }


thank you,
Kara

Quote:
Originally Posted by Danielle
Oh sure...lol! I always forget that it would be good to post the solution!

OK, go to Modules/Manufacturers/customer_manufacturer_products.tpl.

I am just going to cut and paste my code and bold the changes, I think that is the easiest way to show what I did...
__________________
Kara
http://www.tipsproshop.com/store
xcart v4.7.8 [windows]
Reply With Quote