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

LogoutSuccess template not showing
 
seldon
Sr. Member
 
Total Posts:  92
Joined:  2007-11-08
 

Hi,

Somehow my logout success template file is not showing. I have the following code in my main.xml

<customer_account_logoutSuccess>
        <!-- 
Mage_Customer -->
        <
reference name="root">
            <
action method="setTemplate"><template>page/2columns-left.phtml</template></action>
        </
reference>
        <
reference name="content">
            <
block type="core/template" name="customer_logout" template="customer/logout.phtml"/>
        </
reference>
    </
customer_account_logoutSuccess>

Even when i change the template, no change is visible: the content area remains empty, and my template remains the default one. Any help is appreciated! (It might be a bug? although the online magento demo store works fine)

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michae1
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Hi seldon,

Could you refresh all the caches (Admin -> Cache Management) and try again ?

Let us know if that helps you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
seldon
Sr. Member
 
Total Posts:  92
Joined:  2007-11-08
 

Hmm, no success. The logout page is still not displaying. My logout xml code:

<customer_account_logoutSuccess>
        <!-- 
Mage_Customer -->
        <
reference name="root">
            <
action method="setTemplate"><template>page/2columns-left.phtml</template></action>
        </
reference>
        <
reference name="content">
            <
block type="core/template" name="customer_logout" template="customer/logout.phtml"/>
        </
reference>
    </
customer_account_logoutSuccess>
 
Magento Community Magento Community
Magento Community
Magento Community
 
seldon
Sr. Member
 
Total Posts:  92
Joined:  2007-11-08
 

Ok, this is clearly a bug: when i rename the logoutSuccess action to logoutsuccess (and rename the appropriate section in the main.xml), then it works. I think something goes wrong with the parsing of the config file due to the capital S (probably something with the _underscore function).

Let me know when this is fixed!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

@seldon: There was an update to main.xml standard. all action handles (customer_account_logoutsuccess, checkout_onepage_shippingmethod) should be lower case, to avoid confusion with controller action method names.

Please make sure that in your custom main.xml all action handles are lower case.

Let me know how it goes

 
Magento Community Magento Community
Magento Community
Magento Community
 
seldon
Sr. Member
 
Total Posts:  92
Joined:  2007-11-08
 

Ok, i made them all lowercase. Should i also make them lowercase in the associated controllers?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

No, that should be ok. Does it work?

 
Magento Community Magento Community
Magento Community
Magento Community
 
seldon
Sr. Member
 
Total Posts:  92
Joined:  2007-11-08
 

yeps, i encounter no problems! Thnx!

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