As name say’s this blog is all about the quick and easy tweaks for magento. So here are the quick and easy steps again !! and save your time .
Example 1: How to reset magento admin password
If you are using Magento and you have forgotten or lost your password, then the best way to recover it is via the database are as follows.
Step 1: Select the user if you want to select password for particular user. If you know the user name then you may skip step 1.
SELECT * FROM admin_user;
Step 2: Resetting Admin Password. Replace keyword “NewPassword” with actual password you want for admin user. Please make sure that you have ‘qX’ as is otherwise you will not be able to login magento.
UPDATE admin_user SET password=CONCAT(MD5('qXNewPassword'), ':qX') WHERE username='admin';
Example 2: How to debug in magento.
There are several ways we can debug/ fix the problem. First get to know how to enable template path hints.
1. How to enable template path hints in magento.
Step 1: Login Magento Admin Panel.
Step 2 : Select option from top menu ” Systems > Configuration “.
Step 3: click “Advanced > Developer” menu, it will reload the page, now find Debug section in right panel and then Set “Template Path Hints to Yes “.
step 4: Now refresh the magento home page. It will show up all the templates path hints.
2: How to enable path hint for magento admin panel.
Execute following two statement to enable path hint for admin module.
INSERT INTO core_config_data SET scope = 'default', scope_id = 0, path = 'dev/debug/template_hints', value = 1; INSERT INTO core_config_data SET scope = 'default', scope_id = 0,path = 'dev/debug/template_hints_blocks', value = 1;
Example 3: How to disable magento caching?
Magento has a strong caching mechanism to serve the pages faster. By default, Magento sets
the caching as enabled. We have to disable the caching feature to view the changes after
necessary modification. At development, the environment will keep the caching disabled. To
disable the caching, go through the following steps:
step 1: Log in at your Magento Admin Panel and point your browser to System | Cache Management. step 2: Click on the Select All link to select all rows. step 3: Select Disable from the Actions dropdown. step 4: Click on the Submit button to save the changes.