1. Create a form
2. Press the field to be pre-populated. You will see the box with its properties.
3. Find value property. There will be an icon near it "Add PHP script". Click this icon.
The following scripts can be added:
Pre-populate full name:
- Code: Select all
echo Mage::getSingleton('customer/session')->getCustomer()->getName();
Pre-populate last name:
- Code: Select all
echo Mage::getSingleton('customer/session')->getCustomer()->getLastname();
Pre-populate first name:
- Code: Select all
echo Mage::getSingleton('customer/session')->getCustomer()->getFirstname();
Pre-populate email address:
- Code: Select all
echo Mage::getSingleton('customer/session')->getCustomer()->getEmail();
N.B. Your customers should be logged in so that their data is pre-populated.

