getLayout()->createBlock('customer/widget_dob') ->setDate($this->getCustomer()->getDob()) ->toHtml() ?> For checkout/onepage/billing.phtml: getLayout()->createBlock('customer/widget_dob') ->setDate($this->getCustomer()->getDob()) ->setFieldIdFormat('billing:%s') ->setFieldNameFormat('billing[%s]') ->toHtml() ?> NOTE: Regarding styles - if we leave it this way, we'll move it to boxes.css Alternatively we could calculate widths automatically using block input parameters. */ /** * @see Mage_Customer_Block_Widget_Dob */ ?>
setDateInput('d', '
getFieldParams() . ' />
' ); $this->setDateInput('m', '
getFieldParams() . ' />
' ); $this->setDateInput('y', '
getFieldParams() . ' />
' ); ?> getSortedDateInputs() ?>