• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

monkeyduc
#1 Posted : Monday, April 6, 2009 2:11:08 PM(UTC)
monkeyduc

Rank: Member

Joined: 11/25/2008(UTC)
Posts: 29

I'd like to have anchor text that performs various searches on our site. For instance something like this

See all of our <a href="search.aspx?q=carbon fiber">carbon fiber</a> parts.

But I can't figure out how to do that.

If it's possible, what's the syntax for the query string passed in the URL?


And why in the heck are reply notifications turned off in this forum? Annoying...
Aaron
#2 Posted : Monday, April 6, 2009 3:44:31 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Yes, it does this. The querystring name is "keyword". Remember that for keyword phrases with spaces you should replace those with "+". So, your example would look like this:

See all of our <a href="search.aspx?keyword=carbon+fiber">carbon fiber</a> parts.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
monkeyduc
#3 Posted : Tuesday, April 7, 2009 12:22:20 PM(UTC)
monkeyduc

Rank: Member

Joined: 11/25/2008(UTC)
Posts: 29

Originally Posted by: "Aaron" Go to Quoted Post
Yes, it does this. The querystring name is "keyword". Remember that for keyword phrases with spaces you should replace those with "+". So, your example would look like this:

See all of our <a href="search.aspx?keyword=carbon+fiber">carbon fiber</a> parts.


Thanks!

Any chance you can do more complex searches like AND, OR ()'s etc?

I see on the search page you can restrict to certain prices or categories, can you do that via passing parameters? I've tried ?category=foobar and so on and nothing comes up.
Aaron
#4 Posted : Tuesday, April 7, 2009 1:13:50 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
For more advanced search logic like AND-ing keywords, check out this add-on: http://forums.bvcommerce.com/de...lt.aspx?f=91&m=62292

As far as passing other predefined search criteria to the search page, this is not supported out of the box, but it is achievable via a customization. We're actually finishing up a site that does this.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012