![]() |
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 |
I also tried without success:
{if $extra_field[0].field_value} <a href="{$product.pdfsheet}">Product Information Sheet</a> {/if} |
In case anyone has this question, here's the answer:
{if $extra_fields[0].field_value}
<A href="{$extra_fields[0].field_value}">Product Information Sheet</A> {/if} |
All times are GMT -8. The time now is 07:24 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.