July 12, 2011 at 3:09 am #33925
Just wondering if there’s anything going to happen with being able to use shortcode to search multiple categories. Having the buy now button is not critical (to me) nor is, at this point, multiple search terms (which it seems is quite complicated). I’m asking because I’m about to go live with my site after cataloging over a hundred different products (music) and if they can’t be searched by category through the search window, I have to add some other key words in the product description to to trick the search window into operating that way. I already have set up pages that list a particular category and have provided links on the store page for that i.e. click here to see all the music that is of the genre rock and roll. So I have a workaround, and I realize you can’t be expected to write a custom app for every individual user, just wanted to know if it’s in the plan so that I know what write in my product descriptions. Thanks.July 13, 2011 at 4:40 am #33926
Okay added the search_category parameter to the following shortcode too:
When you use the “search_category=1” parameter in the shortcode it searches for that string in all of your categories. The category search result is displayed at the bottom of the product search result. So it will first show a list of the product search then it will list the categories which also has that search string.
You can get a new build of the extra shortcodes plugin from here:July 13, 2011 at 11:48 pm #33927
That’s great thanks! I guess I’m not clear on the concept of category search. I understand using sortcode to return all the products in one category (I’m already doing that) I’m thinking people want to search multiple categories when they look for music i.e fast, romantic rock and roll. If I try to use the search window to search for “symphonic” category (in my store that’s id 5) okay good as long as I have search_category=5. But if another customer comes along and wants to search rock and roll using the search window (my store’s category 12) then I have to add another search window for that category. Am I misunderstanding? I can’t use the category shortcode to search all my categories at once depending on the terms typed in the search window. I thought I could use the shortcode like [wp_eStore_product_search search_category=5, 12, etc] Perhaps I shouldn’t use this method to search genres of music. It’s sort of an unusual product, like searching for clothes by color, I guess.July 14, 2011 at 1:59 am #33928
There is a slight misunderstanding here. The following parameter in the shortcode does not mean only search category one (1):
1 in this context means true (meaning.. yes search this term against the category table too). If thats confusing you can use
search_category=truewhich will work fine too.
When you do have the search category flag set it will search ALL of your categories (Not just one). Does that make sense?July 14, 2011 at 2:43 am #33929
That makes perfect sense, and that’s the way I thought/knew you designed it to work, but for some reason I’m not getting it to work. I have a product-a piece of music- that has been checked off in its product description as being in multiple categories, one of which is called symphonic. I have placed the shortcode on the music store page [wp_eSore_product_search search_category=1]
I save the page, go to that music store page, type symphonic in the search window and it returns no products found. Is it because the product is in multiple categories? Ironically, when I type in the category that coincidentally has id 1, the search window returns all the products in that category. I tried the same procedure, substituting true for the number 1 in the short code, same result. I can work around this but I guess I’ve done something really obviously wrong that I’m too close to it to see.July 15, 2011 at 3:59 am #33930
Just add the category names in your Product description field and that should take care of this.July 15, 2011 at 6:52 am #33931
Okay will do. After I click product search, the page reloads to the top of the page. Is that theme related? Is there a way to get the page to reload at the place where the results of the product search are displayed (I’m almost done, you won’t have to put up with me much longer:))July 16, 2011 at 2:28 am #33932
I added an anchor option for the search. Download the new build of the extra shortcodes plugin from here and try a search:July 16, 2011 at 7:22 am #33933
Sweet, thank a bunch.
- You must be logged in to reply to this topic.