View Single Post
  #3  
Old 10-17-2007, 11:04 AM
 
jillsybte jillsybte is offline
 

eXpert
  
Join Date: Jun 2006
Location: New York, USA
Posts: 389
 

Thumbs up Re: Parsing Smarty Tags in Extra Fields

Sorry I placed my post in the wrong spot...

It turns out adding eval was working. I was just over-complicating and not placing the correct information between my link tags , so I was just seeing a blank space. All I had to do was place this in the extra field:

Quote:
{if $product.manufacturerid gt 0}<a href="manufacturers.php?manufacturerid={$product.m anufacturerid}">{$product.manufacturer}</a>{else}None Specified{/if}

and make the change to skin1/modules/Extra_Fields/product.tpl that I mentioned above. I placed the if else statement in case I forget and place this code in the Manufacturer extra field of a product for which I haven't specified a manufacturer. I may instead place an if statement in the Extra_Fields/product.tpl to have it not display the field at all if $product.manufacturerid = 0.

Jill
__________________
X-Cart Gold 4.1.8 (Live)
BCSE Shipping Estimator for FLC Mod
BCSE Shipping Methods per Product Mod
BCSE Customer Review Management Mod
BCSE Catalog Order Form Mod
X-Cart Gold 4.5.2 (Building/Testing)
USA
Reply With Quote