View Single Post
  #48  
Old 08-08-2012, 09:10 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Additional fields for address book

Just successfully implemented this mod for 4.4.4, worked like a charm. Thanks Alex

I did have to implement the extra step in post #26 http://forum.x-cart.com/showpost.php?p=333175&postcount=26

Additionally I modified /common_files/mail/html/order_invoice.tpl
to include an if statement to check if there is a saved value for the field :
{foreach from=$order.extra.additional_fields.address.B item=v}
{if $v.value ne ""}
<tr>
<td><strong>{$v.title}:</strong></td>
<td>{$v.value}</td>
</tr>
{/if}
{/foreach}

Has to be done for the billing and shipping fields both. Just keeps it from displaying the field title unless the user has a value saved for that field.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote