| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Only 2 extra fields in <a href> | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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:
__________________
X-cart version 4.6.5 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() did you input any info into the extra field??
$extra_fields[field].field_value <--- thisis asking if the extra field has data
__________________
xcart 5.1.2 |
|||||||||
#3
|
|||||||
|
|||||||
![]() yes, there is info in the field... when i look at the source code of the output i get this...
Code:
so it is picking up the values, just not putting them in the correct order. The anchor text is displayed outside the <a>
__________________
X-cart version 4.6.5 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() maybe try this - move the {/if} inside teh </a> - just a guess
Planting Directions{/if}</a>
__________________
xcart 5.1.2 |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Your code is wrong
Code:
What do you have in first field and what in the second? Can you give example?
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#6
|
|||||||
|
|||||||
![]() 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>
__________________
X-cart version 4.6.5 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Try this
Code:
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#8
|
|||||||
|
|||||||
![]() i see what you are trying to do, yet the code is not displaying anything?
__________________
X-cart version 4.6.5 |
|||||||
#9
|
|||||||||
|
|||||||||
![]() 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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#10
|
|||||||
|
|||||||
![]() this is on product.tpl. which, as i understand, has extra fields available by default.
__________________
X-cart version 4.6.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|