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)
-   -   Additional Field in Profile (https://forum.x-cart.com/showthread.php?t=41204)

Knickershack 07-18-2008 07:05 AM

Additional Field in Profile
 
Hi all
Im trying to get the data of an additional field in the contact information into the label print, I have tried the following with no luck can anyone help please?

Code:

{foreach from=$_userinfo.additional_fields item=v}
{if $v.section eq 'S'}
{$v.title}
{$v.value}
 {/if}
{/foreach}


I have trield all the sections C, P, B & S all return a blank.

many thanks

neroag 07-18-2008 12:22 PM

Re: Additional Field in Profile
 
No matter i figured it.

Code:

{if $customer ne ''}{assign var="_userinfo" value=$customer}{else}{assign var="_userinfo" value=$userinfo}{/if}
{config_load file="$skin_config"}
{foreach from=$_userinfo.additional_fields item=v}
{if $v.section eq 'C' || $v.section eq 'P'}
{$v.value}
{/if}
{/foreach}



All times are GMT -8. The time now is 01:18 PM.

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