Avenir | Drupal Development | Joomla Development | Magento Development | OsCommerce Development

Thursday 24 March 2011

Blink option in IE Browser


<SCRIPT>
<!--
function doBlink() {
var blink = document.all.tags("BLINK")
for (var i=0; i<blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}
function startBlink() {
if (document.all)
setInterval("doBlink()",500)
}
window.onload = startBlink;
// -->
</SCRIPT>

<blink>Avenir Techno Solutions</blink>


By T.GaneshKumar, Avenir

How to display the FAVICON in IE Browser?

<link href='http://ave-nir.com/favicon.ico' rel='icon' type='image/vnd.microsoft.icon'/>

By Avenir Design Team

Magento Installation from 'Localhost to Server or Server to localhost'

1)Import the Database … If the database seems bulk means empty the following tables,
Log_url
log_url_info
log_visitor
log_visitor_info
log_visitor_online
2) Then made the following changes in the below table
Core_config_data-> web/unsecure/base_url
                                        Web/secure/base_url
3)  Search the current hostname eg:www.example.com and replace with current local host Ip in ‘core_config_data ‘ table
4)      Go to  the path :    app/etc/   and delete the local.xml file
5)      Go to the path:     var/cache, var/session    delete all the files
6)      Check the file permissions for the following  folders
Var
Media
App
7) Check whether the lines commented in the app/code/core/Mage/core/session/Model/abstract/varien.php  files
// set session cookie params
session_set_cookie_params( 
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()//,
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);

By RadhaKrishnan

Add the new product to the cart in url magento

To add the product using the url in magneto the following example is very useful for magento developers

http://www.domian.com/testm/index.php/checkout/cart/add?product=166&qty=1

By Radhakrishnan

Admin Login not working in magento

Solution is, go to the following page and command the lines as per following instruction.

app\code\core\Mage\Core\Model\Session\Abstract\Varien.php

        // session cookie params
        $cookieParams = array(
            'lifetime' => $cookie->getLifetime(),
            'path'     => $cookie->getPath()
            /*'domain'   => $cookie->getConfigDomain(),
            'secure'   => $cookie->isSecure(),
            'httponly' => $cookie->getHttponly()*/
        );

By Avenir Team

Wednesday 23 March 2011

CSS Hacks for IE6, IE7, IE8

CSS hack for Internet Explorer 6

* html .ClrButton {color: #C39;}


CSS hack for Internet Explorer 7

*:first-child+html .ClrButton {color: #66F;}

Or a shorter version:

*+html .ClrButton {color: #66F;}


CSS hack for Internet Explorer 8

.ClrButton {color: #0FC\0/;}


Examples

.ClrButton {color: #777;} /* for all browsers */
* html .ClrButton {color: #C39;} /* for IE6 */
*+html .ClrButton {color: #66F;} /* for IE7 */
.ClrButton {color: #0FC\0/;} /* for IE8, going last */

By Avenir Team

How to Post (Share) the Content to Face book?

<a href='http://www.facebook.com/sharer.php?s=100&p[title]=AVENIRTECHNOSOLUTION&p[summary]=Web+Design+DEVELOPMENT+Company.&p[url]=http://www.ave-nir.com&p[images][0]=http://ave-nir.com/images/logo.png'>Share</a>

By Manikandan - Avenir

How to add multiple "TO" email address contact setting in magento admin panel?


To add additional Send Email TO/CC/BCC to this section, Open app\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>
                        <show_in_default>1</show_in_default>
                        <show_in_website>1</show_in_website>
                        <show_in_store>1</show_in_store>
    </recipient_email2>




· Now open app\code\core\Mage\Contacts\controllers\IndexController.php & find below code,
const XML_PATH_EMAIL_RECIPIENT = 'contacts/email/recipient_email';
Add below code after above code,
const XML_PATH_EMAIL_RECIPIENT2 = 'contacts/email/recipient_email2';
Now find below code in same file IndexController.php,
$mailTemplate->setDesignConfig(array('area' => 'frontend'))
->setReplyTo($post['email'])
->sendTransactional( Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE),
Mage::getStoreConfig(self::XML_PATH_EMAIL_SENDER),
Mage::getStoreConfig(self::XML_PATH_EMAIL_RECIPIENT),
null,
array('data' => $postObject)
);
Add below code after above code,
$mailTemplate->setDesignConfig(array('area' => 'frontend'))
->setReplyTo($post['email'])
->sendTransactional( Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE),
Mage::getStoreConfig(self::XML_PATH_EMAIL_SENDER),
Mage::getStoreConfig(self::XML_PATH_EMAIL_RECIPIENT2),
null,
array('data' => $postObject)
);

Now go to admin panel System --> Contacts
By Avenir Team