X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   getting specific links to appear on product pages (https://forum.x-cart.com/showthread.php?t=21115)

gravel 04-13-2006 01:20 PM

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

gravel 04-13-2006 01:32 PM

I also tried without success:

{if $extra_field[0].field_value}
<a href="{$product.pdfsheet}">Product

Information

Sheet</a>
{/if}

gravel 04-24-2006 01:36 PM

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.