View Single Post
  #1  
Old 04-13-2006, 01:20 PM
 
gravel gravel is offline
 

Senior Member
  
Join Date: Mar 2004
Posts: 156
 

Default getting specific links to appear on product pages

I want to have a link to a unique, corresponding product sheet appear underneath the thumbnail, for some products, on the product page.

I created an extra field, pdfsheet, that doesn't show, with nothing as a default value. In one product, I made the value for pdfsheet = the full URL to the product sheet.

Then in skin1/customer/main/product.tpl, beneath the code for the thumbnail, I added:




{if $pdfsheet.field_value}
<a href="{$product.pdfsheet}">Product

Information

Sheet</a>
{/if}

So far, nothing happens. OK, so I'm totally guessing here. Anybody got a suggestion?

Thanks,
Dan
__________________
X-Cart version 4.0.17
X-Cart version 4.0.18
Web servers = Apache
OS = Linux
Reply With Quote