2013-02-12 2 views
0

안녕하세요 사용자 정의 phtml 파일 또는 magento.I 사용하여 코드를 추가하는 코드를 추가하고 싶습니다 등록을위한 코드를 찾지 못했습니다 어디에 내가 그것을 업데이트 할 수 있습니다. customer.From 내가있어 이 코드는레귤러 페이지 magento

<customer_account_create translate="label"> 
     <label>Customer Account Registration Form</label> 
     <!-- Mage_Customer --> 
     <remove name="right"/> 
     <remove name="left"/> 

     <reference name="root"> 
      <action method="setTemplate"><template>page/1column.phtml</template></action> 
     </reference> 
     <reference name="content"> 
      <block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml"> 
       <block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" translate="label"> 
        <label>Form Fields Before</label> 
       </block> 
      </block> 
     </reference> 
</customer_account_create> 

내 블록 코드는 내가 adanace

답변

2

내가 레이아웃을 만드는 제안에 내 website.Thanks에 등록 페이지의 끝에서 내 페이지를 표시 할

<module_index_index> 
     <reference name="content"> 
      <block type="module/module" name="module" template="module/module.phtml" /> 
     </reference> 
    </module_index_index> 

입니다. XML 파일을 다운로드하십시오.

먼저 모듈의 config.xml에이 파일을 정의해야합니다

<frontend> 
    <layout> 
     <updates> 
      <your_module> 
       <file>your_module.xml</file> 
      </your_module> 
     </updates> 
    </layout> 
</frontend> 

그런 다음 아래의이 레이아웃 파일을 만듭니다 디자인/프론트 엔드/기본/만들면 기본적/레이아웃

<?xml version="1.0" encoding="UTF-8"?> 
<layout> 
    <customer_account_create> 
     <reference name="content"> 
      <block type="module/module" name="module" template="module/module.phtml" /> 
     </reference> 
    </customer_account_create> 
</layout> 

이를 등록 페이지 마지막에 모듈을 추가해야합니다.

+0

당신의 response.I 주셔서 감사합니다. 나는 알고 있지만 내가 원하는 때 등록 페이지에 내 코드를 삽입하고 싶습니다, 그리고 이것은 내 xml에 등록을위한 업데이트 XML을 작성하여 발생할 수 있습니다 () 핵심에 없습니다 xml.Hope 당신은 내 포인트가 –

+0

이 방법은 코어 XML 파일을 편집하지 않고 남겨두고 간단한 몇 줄의 논문으로 자신의 XML 파일을 만들어야합니다. xml 줄은 xml 트리에 추가됩니다. 이것은 당신이 찾고있는 것이 아닙니까? – dmanners

+0

답변을 죄송합니다.이 코드로 문제를 해결했습니다. 다시 감사합니다. –