Contributions

Features (Category Index)
Search: 

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.

Expand All / Collapse All

Add customer details v1.2 4 Aug 2009

A little correction to previous version. This contrib will work properly only if add 2 lines of code:

If you installed v1.1 do following:
FIND:
if (tep_session_is_registered('customer_id')) {
echo '<strong>' . $name . '</strong>';

REPLACE TO:
if (tep_session_is_registered('customer_id')) {
echo tep_draw_hidden_field('name', $name);
echo '<strong>' . $name . '</strong>';


FIND:
if (tep_session_is_registered('customer_id')) {
echo '<strong>' . $email . '</strong>';

REPLACE TO:
if (tep_session_is_registered('customer_id')) {
echo tep_draw_hidden_field('email', $email);
echo '<strong>' . $email . '</strong>';

or you can simple replace attached contact_us.php file.

FULL PACKAGE. Instructions upgraded.

Add customer details v1.1 1 Aug 2009
supplemental info 26 Apr 2008
Add customer details v1 mike karthauser 27 Oct 2003

Note: Contributions are used at own risk.