| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Make extra field clickable | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi, thanks in advance for any replies.....
I would like to make the contents of an extra field clickable as it will display a url - so much easier for the customer to simply click the url instead of cut & paste etc.... Would anyone know of a way to do this ? BTW there are a lot of products so changing the field properties would be easier instead of manually adding html or similar to every single product. Thank you.... |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You just have to put the field value in an <a> tag. Look in skin1/modules/Extra_Fields/product.tpl
You can replace <td class="property-value">{$v.field_value}</td> with <td class="property-value"> {if $v.field eq "yyyy"} <a href="{$v.field_value}">xxxx</a> {else} {$v.field_value} {/if} </td>
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||
|
|||||||
![]() Hi thank you.... its not working... can I just double check it...
Heres my original tpl - it is slightly different but dont think that would make a difference? Code:
And this is what I changed it to: Code:
Have I made an obvious mistake ? |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Yes you did. You need to replace "yyyy" with the field name and "xxxx" with whatever you want the link to be called. Right now the code is looking for an extra field "yyyy" and of course won't find any
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#5
|
|||||||
|
|||||||
![]() Yes
![]() |
|||||||
|
|||
X-Cart forums © 2001-2020
|