News:

Support the VirtueMart project and become a member

Main Menu

add text to userinfo list in email and cart view

Started by rustle, September 30, 2012, 01:32:57 AM

Previous topic - Next topic

rustle

hi guys
i was wondering if anybody had figured out how to add some simple text before each field in the user info list in both the cart, email and invoice views?

specifically I would like to put a prefix before each of the phone number types that show in my user fields list - phone , fax , mobile

so my billto user info list currently appears something like  like this:
admin
John Doe
1 St. John's Place
Toronto
Ontario
Canada
M6P4C2
4161790783
4161790783
4161790783

but I would like it to appear like this as it would be much more easy for both my staff and customers to understand

admin
John Doe
1 St. John's Place
Toronto
Ontario
Canada
M6P4C2
p: 4161790783
f: 4161790783
m: 4161790783

any ideas?

thank you in advance

rustle


K&K media production

In my case I have seperate the bill and contact information.

contact:

<?php  
foreach ($this->userfields['fields'] as $field) {
if(!empty($field['value'])){
if ($field['name'] == 'email' || $field['name'] == 'phone_1' || $field['name'] == 'phone_2' || $field['name'] == 'fax') { ?>

<tr class="Stil1">
                    <td class="list2" style="width:100px;"><?php echo $field['title'?></td>
<td class="list2"><?php echo $this->escape($field['value']) ?></td>
</tr>
<?php
}
}
}
?>


billto:

<?php  
foreach ($this->userfields['fields'] as $field) {
if(!empty($field['value'])){
if ($field['name'] != 'email' and $field['name'] != 'phone_1' and $field['name'] != 'phone_2' and $field['name'] != 'fax') { ?>

<tr class="Stil1">
                    <td class="list2"><?php echo $field['title'?></td>
<td class="list2"><?php echo $this->escape($field['value']) ?></td>
</tr>
<?php
}
}
}
?>

rustle

@ kkmediaproduction

i am confused
did you solve this problem or are you experiencing the same thing?

if you did solve this can you tell me which file you updated and how it looks on the out put?

thank you in advance

K&K media production

I have different table layouts for contact and billto. You can use this code for custom mail_html_shopperaddresses.php