Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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

 
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.

 
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

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