Posted by: james | September 14, 2009

search module..

app/etc/modules/serach_new.xml
<?xml version=”1.0″ encoding=”UTF-8″?>
<config>
<modules>
<Search_New>
<active>true</active>
<codePool>local</codePool>
</Search_New>
</modules>
</config>

app/design/frontend/default/new/layout/new.xml

<?xml version=”1.0″ encoding=”UTF-8″?>
<layout version=”0.1.0″>
<catalog_category_layered>
<reference name=”catalog.leftnav”>
<block type=”catalog/layer_view” name=”catalog.leftnav” after=”currency” template=”new/first.phtml”/>
<action

method=”setToolbarBlockName”><name>product_list_toolbar</name><block>catalog/product_list_toolbar</block><template>new/first.phtml</template>

</action>
</reference>
</catalog_category_layered>
</layout>

<!–<?xml version=”1.0″ encoding=”UTF-8″?>
<layout version=”0.1.0″>
<catalog_category_layered>
<reference name=”product_list_toolbar”>
<block type=”catalog/product_list_toolbar” name=”product_list_toolbar” template=”new/first.phtml”>
</block>
<action

method=”setToolbarBlockName”><name>product_list_toolbar</name><block>catalog/product_list_toolbar</block><template>new/first.phtml</template>

</action>
</reference>
</catalog_category_layered>
</layout>

–>

app/design/frontend/default/new/template/new/first.phtml
<?php
echo “sdf”; exit;

now go to admin panel and selsect english from drop down and and sellect design form configuration and write new in package name and run..

nowe go to app/code/local/search/new/etc/config.xml
<?xml version=”1.0″ encoding=”UTF-8″?>
<config>
<modules>
<Search_New>
<version>1.0</version>
</Search_New>
</modules>
<global>
<models>
<new>
<class>Search_New_Model</class>
</new>
</models>
<blocks>
<new>
<class>Search_New_Block</class>
</new>
<catalog>
<rewrite>
<layer_view>Search_New_Block_First</layer_view>
</rewrite>
</catalog>
</blocks>
<helpers>
<new>
<class>Search_New_Helper</class>
</new>
</helpers>
</global>
<frontend>
<routers>
<new>
<use>standard</use>
<args>
<module>Search_New</module>
<frontName>new</frontName>
</args>
</new>
</routers>
<layout>
<updates>
<new>
<file>new.xml</file>
</new>
</updates>
</layout>
</frontend>
</config>

app/code/local/search/new/block/first.php
<?php
class Search_New_Block_First extends Mage_Catalog_Block_Layer_View
{

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: