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

Additional Field in Profile

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-18-2008, 07:05 AM
 
Knickershack Knickershack is offline
 

Member
  
Join Date: Apr 2008
Posts: 25
 

Default 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
__________________
Branch 4.1.11

Lingerie site
Reply With Quote
  #2  
Old 07-18-2008, 12:22 PM
 
neroag neroag is offline
 

Senior Member
  
Join Date: May 2005
Location: UK
Posts: 171
 

Default 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}
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0
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:42 AM.

   

 
X-Cart forums © 2001-2020