| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
getting specific links to appear on product pages | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
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 |
|||||||
|
#2
|
|||||||
|
|||||||
|
I also tried without success:
{if $extra_field[0].field_value} <a href="{$product.pdfsheet}">Product Information Sheet</a> {/if}
__________________
X-Cart version 4.0.17 X-Cart version 4.0.18 Web servers = Apache OS = Linux |
|||||||
|
#3
|
|||||||
|
|||||||
|
{if $extra_fields[0].field_value}
<A href="{$extra_fields[0].field_value}">Product Information Sheet</A> {/if}
__________________
X-Cart version 4.0.17 X-Cart version 4.0.18 Web servers = Apache OS = Linux |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||