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)
-   -   how to * Display Extra Field Name & Value * above thumbs (https://forum.x-cart.com/showthread.php?t=17085)

fuzzylogic 10-04-2005 08:29 PM

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

fuzzylogic 10-04-2005 10:02 PM

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?

shan 10-05-2005 02:10 AM

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

fuzzylogic 10-05-2005 02:59 PM

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.


All times are GMT -8. The time now is 05:59 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.