Thursday, 28 June 2012

How to show Newsletter in footer of a Magento

To show Newsletter in footer go to app/design/frontend/default/YourTheme/layout/newsletter.xml and add the following lines in default

<reference name="footer">
<block type="newsletter/subscribe" name="footer.newsletter" template="newsletter/subscribe.phtml"/>
  </reference>

and add the following line in app/design/frontend/default/YourTheme/template/page/html/footer.phtml

<?php echo $this->getChildHtml('footer.newsletter'); ?>

Wednesday, 27 June 2012

how to send Email in contact from

 make mail.php

<?php echo $_REQUEST['msg']; ?>

 <form method='post' action='mailform.php'>
   Email: <input name='email' type='text' /><br />
   Name: <input name='name' type='text' /><br />
   Telephone: <input name='telephone' type='text' /><br />
  Subject: <input name='subject' type='text' /><br />
  Message:<br />
  <textarea name='message' rows='15' cols='40'>
  </textarea><br />
  <input type='submit' />
  </form>




make  mailform.php


 <?php
$mail_to="abid@ptiwebtech.com";
$sub="Contact Information";
$msg="<table border='1' cellspacing='5' cellpadding='5' align='center' width='600px'>
<tr><td colspan='5' align='center'>Contact Information</td></tr>

<tr>
<td align='center'>Name</td>
<td>". $_REQUEST['name']."</td>
</tr>

<tr>
<td align='center'>E-Mail</td>
<td>".$_REQUEST['email']."</td>
</tr>

<tr>
<td align='center'>Message</td>
<td>".$_REQUEST['message']."</td>
</tr>
<tr>
<td align='center'>telephone</td>
<td>".$_REQUEST['message']."</td>
</tr>

 
 

</table>";
  $headers = "MIME-Version: 1.0" . "\r\n";
  $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
  $headers .="From: ".$_REQUEST['email'];

 ini_set("SMTP","ptiwebtech.com");
 ini_set("smtp_port","25");


mail($mail_to,$sub,$msg,$headers);
 $msg='thank for contact';

print("<script>window.location='mail.php?msg=$msg'</script>");
//info@essveecollection.com
 ?>


 

Thursday, 14 June 2012

import link

category show with drop down(left or right side)

http://www.magentocommerce.com/magento-connect/sidebar-navigation-menu-4554.html

Turning On and Off Magento's Default Blocks

http://www.magentocommerce.com/knowledge-base/entry/turning-on-off-magentos-content-blocks