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
any takers on this?
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
}
}
}
?>
@ 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
I have different table layouts for contact and billto. You can use this code for custom mail_html_shopperaddresses.php