How to enable tempalte and block path hints in Magento
Run this query in your database.
INSERT INTO core_config_data (scope, scope_id, path,value)
VALUES ('default', 0, 'dev/debug/template_hints', 1),
('default', 0, 'dev/debug/template_hints_blocks', 1);
To disable them again, run this query:
UPDATE core_config_data set value = 0 where scope = 'default' and scope_id = 0 and path ='dev/debug/template_hints'
To enable again run this query:
UPDATE core_config_data set value = 1 where scope = 'default' and scope_id = 0 and path ='dev/debug/template_hints'
INSERT INTO core_config_data (scope, scope_id, path,value)
VALUES ('default', 0, 'dev/debug/template_hints', 1),
('default', 0, 'dev/debug/template_hints_blocks', 1);
To disable them again, run this query:
UPDATE core_config_data set value = 0 where scope = 'default' and scope_id = 0 and path ='dev/debug/template_hints'
To enable again run this query:
UPDATE core_config_data set value = 1 where scope = 'default' and scope_id = 0 and path ='dev/debug/template_hints'
Labels:
Magento
How to update inventory, Price using custome attribute in magento
Labels:
Magento
How to get Controller, Module, Action & Router Name in Magento
In most of the case you need to know
the name of controller or module in order to debug. Simple one line code to get
these.
1. Get Controller Name In Template
Files:
$this->getRequest()->getControllerName();
2. Get Action Name In Template
Files:
$this->getRequest()->getActionName(); //the function inside the controller
3. Get Router Name In Template
Files:
$this->getRequest()->getRouteName();
Labels:
Magento
Subscribe to:
Posts (Atom)