Try the Demo

Magento Forum

   
Layout customer.xml
 
lorenzo01
Sr. Member
 
Avatar
Total Posts:  221
Joined:  2007-09-06
France
 

Hello,
I would like to create a link such as http://www.mydomain.com/customer/account/createbis/ that give me the possibility to personalize the create account page, i try to modify layout/customer.xml adding <customer_account_createbis> : 

<customer_account_create>
        <!-- 
Mage_Customer -->
        <
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"/>
            </
reference>
    </
customer_account_create>
<
customer_account_createbis>
        <!-- 
Mage_Customer -->
        <
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/registerbis.phtml"/>
            </
reference>
    </
customer_account_createbis>
i have created customer/form/registerbis.phtml personalized,
but this method does not work when you point to http://www.mydomain.com/customer/account/creatbis/ there is nothing

any ideas
thanks

 Signature 

Lorenzo, a french guy.
Sorry for my english !!

 
Magento Community Magento Community
Magento Community
Magento Community
 
SeL
Magento Team
 
Avatar
Total Posts:  1140
Joined:  2007-10-10
Paris, France
 

Hi Lorenzo,

The original link http://www.mydomain.com/customer/account/create uses the method createAction() in the controller class Mage_Customer_AccountController (in app/code/core/Mage/Customer/controllers/AccountController.php).
So you need to have a new method called createbisAction() in that class.

Remember that it would be better to override that class with one of your own script. This would prevent from loosing your work at next version.

Tell me if this helps.

 Signature 

Blog Magento en français | Wiki français | Traduction française de Magento (sa documentation et son fil de discussion)

 
Magento Community Magento Community
Magento Community
Magento Community
 
lorenzo01
Sr. Member
 
Avatar
Total Posts:  221
Joined:  2007-09-06
France
 

Thank you SeL, it’s ok. Merci wink

 Signature 

Lorenzo, a french guy.
Sorry for my english !!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top