cancel
Showing results for 
Search instead for 
Did you mean: 

How can I manipulate an advanced search url to work with a form?

How can I manipulate an advanced search url to work with a form?

I use search boxes throughout my site with this code-

 

 <form action="/catalogsearch/result/" method="get">

 

And everything works great. I am now trying to use this same method with advanced search. The purpose is to only search within a single attribute. In my case this url works great-

/catalogsearch/advanced/result/?manufacturer=26&name=single+phase

 

The problem I am running into is if I try to use this code-

 

<form action="/catalogsearch/advanced/result/?manufacturer=26"  method="get">

 

It doesn't work. It seems like it strips ?manufacturer=26, but even if it didn't strip off the ? I don't think a url would work with two separate ? anyway. Anyone have any idea to fix this? Or a different idea to create a search by an attribute?