Magento Reset Password Email And Functionality Is Not Working With Custom Theme

Every time you do major changes in a magento theme, you need to check all existing functionality of your website. Sometimes you might have been facing problems with sudden changes in the theme or after installing a new theme your “Reset Password” emails stop sending and the fnctionality does not work.

Most of the time this issue happens with new Magento 1.9

There could be many reasons for this email/functionality issues, We have assumed one of the common issue and covered fix for that.

One of the reason for emails not sending reset password email might be getting storeId. There are different methods for getting storeId, some of them will not work in some modules, the same way if you replace the way of getting storeId in sendPasswordResetConfirmationEmail method of

Mage_Customer_Model_Customer in app/code/core/Mage/Customer/Model/Customer.php

this should start sending emails. replace the line

$storeId = $this->getStoreId();

with

$storeId = Mage::app()->getStore()->getStoreId();

Note: For best practise, do not edit any core files, create Customer/Model folder under app/code/local and copy the file Customer.php into the new Customer/Model under local and edit the file.

Missing Reset Password Block

Case : 1
Sometimes when customer clicks reset password link from their email, the website shows blank or reset password block will not show, in this case most of the time layout/Customer.xml misses reset password block, find out Customer.xml from

app/design/frontend/[themename]/default/layout or app/design/frontend/rwd/default/layout

and add below code, if it is not there already

<customer_account_resetpassword translate=”label”>
<label>Reset a Password</label>
<remove name=”right”/>
<remove name=”left”/>

<reference name=”head”>
<action method=”setTitle” translate=”title” module=”customer”>
<title>Reset a Password</title>
</action>
</reference>
<reference name=”root”>
<action method=”setTemplate”>
<template>page/1column.phtml</template>
</action>
<action method=”setHeaderTitle” translate=”title” module=”customer”>
<title>Reset a Password</title>
</action>
</reference>
<reference name=”content”>
<block type=”customer/account_resetpassword” name=”resetPassword” template=”customer/form/resetforgottenpassword.phtml”/>
</reference>
</customer_account_resetpassword>

Case : 2

Sometimes, your custom theme misses Customer.xml from the layout folder which results Reset Password block does not show in the website, but tricky is other customer blocks will display and only reset password will not display.

In this case copy the Customer.xml from

app/design/frontend/base/default/layout

to

app/design/frontend/[themename]/default/layout or app/design/frontend/rwd/default/layout

Magento Navigation By Category And Top Navigation

The term, navigation refers to the methods shoppers use to move from page to page throughout your store. The main menu, or top navigation of your store is actually a list of category links. The category structure of your catalog is the main way people find products in your catalog. You will also find categories in the breadcrumb trail that runs across the top of most pages, and in the “layered navigation” that appears on the left side of some two- or three-column pages.

For a product to be visible in your store, it must be assigned to at least one category. Each category can have a dedicated landing page with an image, static block, a description, and list of products. You can also create special designs for category pages that become active for a specific period of time such as for a holiday season or promotion.

Magento Category navigation

Top Navigation

The main menu of your store displays the selection of categories that are available in your catalog. You can think of the top navigation as different departments in your store. A top-level category serves as landing page for all the subcategories below. The position and presentation of the top navigation might vary by theme, but the way it works is the same.

Magento_category_navigation_top_navigation

The first level of categories below the root typically appear as options in the main menu. Below that, you can have as many additional subcategories as needed. The category structure of your catalog can influence how well your site is indexed by search engines. The deeper a category, the less likely it is to be thoroughly indexed. As a general rule, anywhere between one and three levels is considered to be the best. You can set the maximum number of levels that are available in your top navigation in the system configuration.

To set the depth of the top navigation:

Step-1: On the Admin menu, select System -> Configuration.

Step-2: In the panel on the left, under Catalog, select Catalog.

Step-3: Click to expand the Category Top Navigation section.

Step-4: In the Maximal Depth field, enter the number of subcategory levels you want to make available for the top navigation.

Step-5: When complete, click the Save Config button.

Load More