2014-04-17 3 views
5

저는 magento로 시작하고 템플릿을 수정하려고합니다. 지금 등록 양식에는 이름과 성이 있으며 나는 단지 이름 만 갖고 싶습니다. 코드를 검사 한 결과 양식의 모든 필드가있는 "template/persistent/customer/form/register.phtml"파일에서 무언가를 찾았지만 이름과성에는이 코드 조각이 있습니다.Magento 등록 양식

<?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->setForceUseCustomerAttributes(true)->toHtml() ?> 

등록 양식 필드를 설정해야하는 파일이 있습니까?

미리 감사드립니다.

답변

5

template/customer/widget/name.phtml을 탐색해야합니다. 테마에없는 경우 기본 폴더에서 같은 폴더 구조로 복사하십시오.

<div class="field name-lastname">은 사용자가 주석 처리 할 수있는 레이블과 입력 값을 갖습니다.

0

div를 style = "display : none;"으로 설정할 수 있습니다.

'마지막 이름'입력란의 값을 '_'과 (와) 같이 변경하십시오.