Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

how to * Display Extra Field Name & Value * above thumbs

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-04-2005, 08:29 PM
 
fuzzylogic fuzzylogic is offline
 

Newbie
  
Join Date: Jul 2005
Posts: 7
 

Default how to * Display Extra Field Name & Value * above thumbs

i searched here and learned how to display an extra field name in products_t, however the instructions to show the extra field value do not work. it makes the line disappear.

it says to:

to display the extra field name then...
{$extra_fields[x].field} --where "x" = extra field number when the range is 0-9
(i believe it's 0-9. i used number 19 and that cause the line to disappear)

and to display the extra field value...
{$extra_fields[x].field_value}


when using the code to display the value, the line disappears. i learned that in phpmyadmin there is no data for "value" in the extra fields table. entering data into it using blank, ascii, and text did nothing.

what am i doing wrong?

*edit*
reference thread:
http://forum.x-cart.com/viewtopic.php?t=12632&highlight=fieldvalue
__________________
4.0.14 (sql5)
Reply With Quote
  #2  
Old 10-04-2005, 10:02 PM
 
fuzzylogic fuzzylogic is offline
 

Newbie
  
Join Date: Jul 2005
Posts: 7
 

Default

appears the following code does work in product.tpl

{$extra_fields[x].field_value}

what code should i use to pull that data from sql so it can work in products_t.tpl?
__________________
4.0.14 (sql5)
Reply With Quote
  #3  
Old 10-05-2005, 02:10 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Quote:
Originally Posted by fuzzylogic
appears the following code does work in product.tpl

{$extra_fields[x].field_value}

what code should i use to pull that data from sql so it can work in products_t.tpl?

if it works on a single column page it should work on multi colmn too.

make sure you put the code in the right place
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 10-05-2005, 02:59 PM
 
fuzzylogic fuzzylogic is offline
 

Newbie
  
Join Date: Jul 2005
Posts: 7
 

Default

Quote:
Originally Posted by shan
Quote:
Originally Posted by fuzzylogic
appears the following code does work in product.tpl

{$extra_fields[x].field_value}

what code should i use to pull that data from sql so it can work in products_t.tpl?

if it works on a single column page it should work on multi colmn too.

make sure you put the code in the right place

in this thread near the bottom two ppl say that it will not work:
http://forum.x-cart.com/viewtopic.php?t=12632&highlight=fieldvalue

in regards to "putting it in the right place" i am entering the code right below the code (after a
) that displays the sku number (which i changed to show products quanitity instead).
again, the code that shows the field name works fine, but adding "_value" to it makes the line disappear.
__________________
4.0.14 (sql5)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:39 PM.

   

 
X-Cart forums © 2001-2020