Saturday, February 15, 2014

Javascript Chart Libraries Comparison

http://socialcompare.com/en/comparison/javascript-graphs-and-charts-libraries

Custom Made Watercooled Desk




Thursday, February 13, 2014

Lords of the Fallen Gameplay (PS4/Xbox One)

Sending Mail Within Magento

<?php
$mail = Mage::getModel('core/email');
$mail->setToName('Your Name');
$mail->setToEmail('Youe Email');
$mail->setBody('Mail Text / Mail Content');
$mail->setSubject('Mail Subject');
$mail->setFromEmail('Sender Mail Id');
$mail->setFromName("Msg to Show on Subject");
$mail->setType('html');// YOu can use Html or text as Mail format

try {
$mail->send();
Mage::getSingleton('core/session')->addSuccess('Your request has been sent');
$this->_redirect('');
}
catch (Exception $e) {
Mage::getSingleton('core/session')->addError('Unable to send.');
$this->_redirect('');
}
?>

Source

Magento Translations



http://www.magentocommerce.com/translations

include template file in magento

(1) template file in .phtml file

<?php echo $this->getLayout()->createBlock(‘core/template’)->setTemplate(‘templateFolder/yourtemplate.phtml’)->toHtml(); ?>

(2) CMS page

{{block type=”core/template” template=”templateFolder/your_template.phtml”}}

Monday, February 10, 2014

Newsletter in Magento CMS Page














make sure newsletter module is enabled, its enabled by default ;)

open the cms page

add this

{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}






About

Blogger templates