How to prepopulate credit card form with customers name from Billing Adress

To get the customers name in the checkout and do something useful with it, get the name from the customers billingdata, which is saved in the quote. Mage::helper(‘checkout’)->getQuote()->getBillingAddress()->getName()

The file you need is app/design/frontend/{YOUR_PACKAGE}/{YOUR_TEMPLATE}/template/payment/form/ccsave.phtml

Add in the top of the file

Leave a Comment

Your email address will not be published. Required fields are marked *