how to change grid value in specfic category


  1. In the Magento Admin, go to Catalog->Manage Categories.
  2. Select the desired category.
  3. Select the Custom Design tab.
  4. Change the Custom Design drop-down (optional).
  5. Select 2 columns with left bar from the Page Layout drop-down.
  6. Add the following the the Custom Layout Update textarea
<reference name="product_list">
    <action method="setColumnCount"><columns>2</columns></action>
 </reference>

How to Add New Field Contact Form in magento


Step 1: Add field to phtml file

Go to app -> design -> frontend -> yourpackage -> yourtheme -> template -> contacts -> form.phtml

If you want to add required field:

1
2
3
4
<li>
    <label for="email"><em>*</em><?php echo Mage::helper('contacts')->__('Company Name') ?></label>
    <div class="input-box"><input name="company" id="company" title="<?php echo Mage::helper('contacts')->__('Company Name') ?>" class="input-text required-entry validate-email" type="text" /></div>
</li>

If you want to add non-required field:

1
2
3
4
<li>
    <label for="telephone"><?php echo Mage::helper('contacts')->__('Company Name') ?></label>
<div><input name="company" id="company" title="<?php echo Mage::helper('contacts')->__('Company Name') ?>" value="" type="text" /></div>
</li>

Magento Contact us Form

Step 2: Add new field detail in email

Open admin panel and go to System -> Transactional E-mails -> Add New Template
Then From the ‘Template’ dropdown menu choose ‘Contact Form’ and then click on ‘Load Template’. You’ll see the current email content, so you’ll simply need to add your new piece of data:

1
2
3
4
5
6
7
Name: {{var data.name}}
E-mail: {{var data.email}}
Telephone: {{var data.telephone}}
Company Name: {{var data.company}}
Comment: {{var data.comment}}

Magento Contact Form Template

Step 3: Apply nwe template to contact email

Go to System -> Configuration -> Contacts. In the ‘Email Options’ section, choose your new template under the ‘Email Template’ dropdown menu and save.

Contactus Form Magento

 

particular search result in magento


app/code/core/Mage/CatalogSearch/Model/Resource/Fulltext.php

Now Go to the following function in this file

public function prepareResult($object, $queryText, $query)

You have to change the following line

$likeCond = '(' . join(' OR ', $like) . ')';

To

$likeCond = '(' . join(' AND ', $like) . ')';

Now change the Search Type to “LIKE” from catalog search section in admin.