Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Solved : add layered navigation in to magento advanced search
 
kajal
Member
 
Total Posts:  60
Joined:  2010-06-27
 

Hi All,

There is an issue to incorporate such feature into magento.

I have tried to develop a beta version module to solve this issue at this moment, the code do not filter all of the attributes related to search result product set. But does the same for manufacture attribute as this is what was into my project scope. Please bare that this is just a beta version and I am still working to get this through.

I am attaching zip file to download from here.

You may get the basic module form inchoo.net that has helped me a lot as always:
http://inchoo.net/ecommerce/magento/advanced-search-sidebar-box/

Hope this helps someone.

Happy coading smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
kajal
Member
 
Total Posts:  60
Joined:  2010-06-27
 
kajal - 25 October 2012 01:24 AM

Hi All,

There is an issue to incorporate such feature into magento.

I have tried to develop a beta version module to solve this issue at this moment, the code do not filter all of the attributes related to search result product set. But does the same for manufacture attribute as this is what was into my project scope. Please bare that this is just a beta version and I am still working to get this through.

I am attaching zip file to download from here.

You may get the basic module form inchoo.net that has helped me a lot as always:
http://inchoo.net/ecommerce/magento/advanced-search-sidebar-box/

Hope this helps someone.

Happy coading smile

File Attachments
Qualdev_SidebarSearch-1.0.0.tar  (File Size: 136KB - Downloads: 120)
 
Magento Community Magento Community
Magento Community
Magento Community
 
Akash Patel
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2011-06-17
surat
 

Hi, Kajal

Thank you for help.
grin

 
Magento Community Magento Community
Magento Community
Magento Community
 
Akash Patel
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2011-06-17
surat
 

Hi Kajal,

Can we have navigation like as magento default layered navigation???

Like This http://demo.magentocommerce.com/catalogsearch/result/?q=shirt

If you know then plz help me.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kajal
Member
 
Total Posts:  60
Joined:  2010-06-27
 

Hey there,

Give me soetime. I ll post module here as soon as its ready.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Akash Patel
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2011-06-17
surat
 

Hey Kajal,

Thanks a lot for such a great help.

Best Regards.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kajal
Member
 
Total Posts:  60
Joined:  2010-06-27
 

Do the following steps to include layered navigation on home page :

Step : 1
Add the following code to cms > pages > select home page > design tab (admin end)

<reference name="right">
<
action method="unsetChild"><alias>right.reports.product.viewed</alias></action>
<
action method="unsetChild"><alias>right.reports.product.compared</alias></action>
<
block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/homeview.phtml"/>
</
reference>

Step :2

Paste homeview.phtml under app\design\frontend\default\default\template\catalog\layer - Don’t forget - default/default - should be as per your theme


Step : 3

Paste Layer.php under app\code\local\Mage\Catalog\Model

Step :4
Clear cache.

You would now be able to see the layered navigation at the right sidebar of your home page. if you want to move it to the ‘left’ - use

<reference name="left">
for step :1

working for advanced search now.

File Attachments
Layer.php  (File Size: 10KB - Downloads: 120)
homeview.phtml  (File Size: 3KB - Downloads: 109)
 
Magento Community Magento Community
Magento Community
Magento Community
 
Akash Patel
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2011-06-17
surat
 

Hey,

I think you don’t understand what is my requirement. excaim

I want navigation in advanced search result page.

Not any cms page. Your code not work in advanced search result page.

I am trying to implement this. and almost i have done. when i will complete i will inform you. ok.

Thanks for help.  grin

 
Magento Community Magento Community
Magento Community
Magento Community
 
kajal
Member
 
Total Posts:  60
Joined:  2010-06-27
 

Hey Akash,

I never said that this code is for advanced search read last line of the post. I am working on it as I said.
But if you have already finished that out .. do post here.
I am just trying to gather all codes that might be needed for layered navigation. Your contribution will be very helpful.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kajal
Member
 
Total Posts:  60
Joined:  2010-06-27
 

Hello all,

Better to use the below code to implement layered navigation to the advanced search as well.

STEP : 1
Download files -’layer.php’ and ‘homeview.phtml’ - as from previous post and keep them at proper location. smile

STEP : 2
Add following block of code to layout /catalogsearch

<reference name="left">
    <
block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/homeview.phtml"/>
</
reference>

Check for the reference name - to suit your needs.

STEP : 3
copy advanced.php file from app/code/core/Mage/CatalogSearch/Model
to
app/code/local/Mage/CatalogSearch/Model

Find the following function :

public function addFilters($values)
After
if ($attribute->getAttributeCode() == 'price'{
line, paste the following code :
$pos=strpos(Mage::app()->getRequest()->getParam('price'),'-');
                if(
$pos==0) :
                
$value=array('from' => 0,'to' => str_replace('-','',Mage::app()->getRequest()->getParam('price')));    
                else :
                
$value=array('from' => str_replace('-','',Mage::app()->getRequest()->getParam('price')),'to' =>'');    
                endif;

Hope this helps. smile

AKASH do let me know if you have found a better way around !!

Let me know if anyone likes me to add all of the files again here.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ankit8118
Jr. Member
 
Total Posts:  5
Joined:  2012-09-23
 

I have done all changes as you mentioned but its not working. So can you please upload your module....?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Akash Patel
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2011-06-17
surat
 

Hey Kajal,

I am sorry. if i say anything wrong.

But i want layered navigation in advanced search result page.

And your code not working in that page.

If you get any solution then inform me.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sankhalainfosol
Jr. Member
 
Avatar
Total Posts:  2
Joined:  2009-10-19
Surat
 

Here is extensions for adding layered navigation on advance search result page.

URL : http://www.xthemers.com/magento-themes-extensions/magento-extensions/xt-advanced-layered-navigation.html

 
Magento Community Magento Community
Magento Community
Magento Community
 
FmeAddons
Sr. Member
 
Avatar
Total Posts:  123
Joined:  2014-01-15
USA
 

This extension will layered navigation in Magento. This is FREE module developed by FmeAddons.  It allows users to navigate using price, color etc

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mage Solution
Sr. Member
 
Avatar
Total Posts:  179
Joined:  2013-11-12
 

Look at Magento layered navigation by Magesolution - The best solution to customize the layered navigation filter for category page and catalog search page of your website.

Our Magento layered navigation will allow customers to filter and search by categories, brands and other product options (prices, colors, sizes, .... ) along with other products attributes. Our Magento layered navigation can help your customers to search desiring products easily and quickly.

Top Reasons to Buy only $ 49

Able to display multi-options for the Category filter
Able to upload image for each of options of one attribute
Able to display or hide image of the option at frontend
Able to display or hide checkbox for the option at frontend
Able to display both price slider control and textbox to insert price at frontend
Able to filter the search results by price range
Able to filter the search results by multi-select in one attribute
Able to filter the search results by multi-attributes
Enhance your site performance with fast AJAX loading
Allow admin to enable/ disable Ajax Loading

Click now : http://www.magentocommerce.com/magento-connect/mgs-layered-navigation.html

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top