Contributions
Add customer details v1
If you go to the contact us page - you used to have to add your name and email address - even if you are logged in.
Now if you add this small contribution, your customers can save a few seconds by allowing information already saved in their customer account to be dropped into the name and email address boxes.
| jfkafka | 26 Apr 2008 |
I couldn't get this to work until I came across a lil contrib from lildog which "put me on the right scent". It involves modifying two additional lines (in case anyone else has trouble getting the boxes to auto fill, you might want to give this a shot since it is a great convenience)
in contact_us.php
FIND
<td class="main"><?php echo tep_draw_input_field('name'); ?></td>
REPLACE WITH
<td class="main"><?php echo tep_draw_input_field('name',($name)?$name:''); ?></td>
FIND
<td class="main"><?php echo tep_draw_input_field('email'); ?></td>
REPLACE WITH
<td class="main"><?php echo tep_draw_input_field('email',($email)?$email:''); ?></td>
good luck!
| mike karthauser | 27 Oct 2003 |
Note: Contributions are used at own risk.
