Category Archives: Coding

How to Design a Perfect Website? Choose the Best Web Designing Company

How to Design a Perfect Website? Choose the Best Web Designing Company   Creating a website or design is adeptness for people who acquire the talent. Internet is a vast place where numerous business people running behind the same goal … Continue reading

Posted in Coding, Web Design | Tagged , , , , , | 1 Comment

In Magento Admin Panel How To Remove The ADD Item Button In The Created Custom Module

In Magento Admin Panel How To Remove The ADD Item Button In The Created Custom Module   File path:app/code/local/Samplemod/Samplemod/Block/Adminhtml/Samplemod.php <?php class Customer_Customerdetails_Block_Adminhtml_Customerdetails extends Mage_Adminhtml_Block_Widget_Grid_Container { public function __construct() { $this->_controller = ‘adminhtml_customerdetails’; $this->_blockGroup = ‘customerdetails’; $this->_headerText = Mage::helper(‘customerdetails’)->__(‘Item Manager’); // $this->_addButtonLabel = … Continue reading

Posted in Coding, Development | Tagged , , , , , | 62 Comments

How To Remove The PHP Tag Using preg_replace

How To Remove The PHP Tag Using preg_replace   $str= ‘hi radha x,annnnnnn…….<? “pri”;?> <?=”pri”;?> hi jo <?php ehco ‘TEXT’;?> Hi raja’ ; $removedPhpWrap10=preg_replace(array(‘#<\?(?:php)?(.*?)\?>#s’), array(”), $str);

Posted in Coding, Development | Tagged , , , | 4 Comments

Module Create Steps

Module Create Steps   If you want to add custom DB-fields go to /new/local/Samplemod/Samplemod/sql/module_setup/mysql4-install-0.1.0.php app/etc/modules/Samplemod_Samplemod.xml app/code/local/Samplemod/Samplemod/Block/Samplemod.php app/code/local/Samplemod/Samplemod/controllers/IndexController.php app/code/local/Samplemod/Samplemod/etc/config.xml app/code/local/Samplemod/Samplemod/Model/Samplemod.php app/code/local/Samplemod/Samplemod/Model/Mysql4/Samplemod.php app/code/local/Samplemod/Samplemod/Model/Mysql4/Samplemod/Collection.php app/code/local/Samplemod/Samplemod/Model/Status.php app/code/local/Samplemod/Samplemod/sql/samplemod_setup/mysql4-install-0.1.0.php app/design/frontend/default/default/layout/samplemod.xml app/design/frontend/default/default/template/samplemod/samplemod.phtml app/code/local/Samplemod/Samplemod/Block/Adminhtml/Samplemod.php app/code/local/Samplemod/Samplemod/Block/Adminhtml/Samplemod/Edit.php app/code/local/Samplemod/Samplemod/Block/Adminhtml/Samplemod/Grid.php app/code/local/Samplemod/Samplemod/Block/Adminhtml/Samplemod/Edit/Form.php app/code/local/Samplemod/Samplemod/Block/Adminhtml/Samplemod/Edit/Tabs.php app/code/local/Samplemod/Samplemod/Block/Adminhtml/Samplemod/Edit/Tab/Form.php app/code/local/Samplemod/Samplemod/controllers/Adminhtml/SamplemodController.php app/code/local/Samplemod/Samplemod/Helper/Data.php app/design/adminhtml/default/default/layout/samplemod.xml  

Posted in Coding | Tagged , | 15 Comments

Add New Attribute Into Product Category In Magento And Remove The Same Attribute

Add New Attribute Into Product Category In Magento And Remove The Same Attribute   In any one of the .PHTML page paste the following code( i.e, app\design\frontend\base\default\template\page ) <?php $setup = new Mage_Eav_Model_Entity_Setup(‘core_setup’); // Create input type as “Textbox” $setup->addAttribute(‘catalog_category’, ‘author’, array( … Continue reading

Posted in Coding, Development | Tagged , , , , , , | 13 Comments

How to add multiple “Recipients” email address setting in Magento Admin Panel ?

To add additional Send Email TO/CC/BCC to this section, Openapp\code\core\Mage\Contacts\etc\system.xml, and find below code <recipient_email translate=”label”> <label>Send Emails To</label> <frontend_type>text</frontend_type> <sort_order>10</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </recipient_email> Add below code after above code in system.xml, <recipient_email2 translate=”label”> <label>Send Emails To</label> <frontend_type>text</frontend_type> <sort_order>11</sort_order> <recipient_email2 … Continue reading

Posted in Coding, Uncategorized | Tagged , , , | 106 Comments