![]() |
Only 2 extra fields in <a href>
Need some help, i am trying to have one extra field be the anchor text with the other extra field fill in the URL, below is the code... tell me where i am going wrong.
Code:
{if $active_modules.Extra_Fields ne ""} |
Re: Only 2 extra fields in <a href>
did you input any info into the extra field??
$extra_fields[field].field_value <--- thisis asking if the extra field has data |
Re: Only 2 extra fields in <a href>
yes, there is info in the field... when i look at the source code of the output i get this...
Code:
<td colspan="2" class="PlantBoxFooter" align="center"> so it is picking up the values, just not putting them in the correct order. The anchor text is displayed outside the <a> |
Re: Only 2 extra fields in <a href>
maybe try this - move the {/if} inside teh </a> - just a guess
Planting Directions{/if}</a> |
Re: Only 2 extra fields in <a href>
Your code is wrong
Code:
{if $extra_fields[field].field_value and ($extra_fields[field].service_name eq "SERVICE_NAME15")} What do you have in first field and what in the second? Can you give example? |
Re: Only 2 extra fields in <a href>
the first field "SERVICE_NAME15" is a URL, the second "SERVICE_NAME13" will be the anchor text for the link. such as
<a href="xxxxxxxx.com/xxx.html">TEST</a> |
Re: Only 2 extra fields in <a href>
Try this
Code:
{if $active_modules.Extra_Fields ne ""} |
Re: Only 2 extra fields in <a href>
i see what you are trying to do, yet the code is not displaying anything?
|
Re: Only 2 extra fields in <a href>
Where are you trying to execute this? Maybe $extra_fields is not available there. I can't really test this as I don't have 4.1.8. You can use the xcart debuger to see which variables are available on that page and what are they called
|
Re: Only 2 extra fields in <a href>
this is on product.tpl. which, as i understand, has extra fields available by default.
|
Re: Only 2 extra fields in <a href>
Maybe try this one
Code:
|
Re: Only 2 extra fields in <a href>
nothing... i have asked a couple other people and see what they say. I will let you know if I find a solution.
|
All times are GMT -8. The time now is 02:57 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.