Here I am add the Custom Field for the Customer Registration Form using the database, It’s very simple to add…
Useful Tricks
You can easily get controller name, action name, router name and module name in any template file or class file….
Use the below given function for it function addhttp($url) { if (!preg_match(“~^(?:f|ht)tps?://~i”, $url)) { $url = “http://” . $url; }…
Make copy /app/code/core/Mage/Core/Model/Email/Template.phpToapp/code/Local/Mage/Core/Model/Email/Template.php Make the condition false near about line number 407Current Code if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) { …
<!– FOR THE ASSOCIATED PRODUCTS–><?php $config_product_id = Mage::registry(‘current_product’)->getId();?><?php //if ($_product->isSaleable() && count($_attributes)):?><?php $product=Mage::getModel(‘catalog/product’)->load($config_product_id); $productAttributeOptions = $product->getTypeInstance(true)->getConfigurableAttributesAsArray($product); $attributeOptions = array(); $ids…
A collection is basically a Model type containing other Models, it is basically used in Magento to handle product lists…
Magento Provide Transitional emails which will allow to create or customize our won email templateSome of the Template variable which…
<?php $setup = new Mage_Eav_Model_Entity_Setup(‘core_setup’); $setup->removeAttribute(‘catalog_category’,’category_color’); $setup->addAttribute(‘catalog_category’, ‘category_color’, array( ‘group’ => ‘General Information’, ‘input’ => ‘select’, ‘type’ …
add_filter(‘upload_mimes’, ‘custom_upload_mimes’); function custom_upload_mimes ( $existing_mimes=array() ) { // add your extension to the array $existing_mimes[‘vcf’] = ‘text/x-vcard’; return $existing_mimes;}
Use below code in your functions.php to Send Mail to sender also using Contact Form 7