Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore Is it possible to filter or narrow products by more than one category id?
Tagged: category, category list, filtering categories
- This topic has 4 replies, 3 voices, and was last updated 11 years, 10 months ago by admin.
-
AuthorPosts
-
October 15, 2012 at 9:41 pm #7654rst79Member
Hi, I plan to have ebooks that are ‘categorized’ into 3 main categories, like: State, Practice Area, and Body Area.
For example, State would include categories of N.Y., N.J., Florida, etc. (up to all 50 U.S. states). Practice Area would include categories of Dermatology, Orthopedics, Family Medicine, etc. Body area would include categories of Head, Chest ,Arms , Legs, etc.
Now, if I have books for Florida-Dermatology-Chest, how could I use the shortcodes to display books in those categories? Or just in categories: Florida-Dermatology?
The documentation only shows the ability to display by one product category id, like this:[wp_eStore_category_products_fancy id=1 style=3]
If I have 100’s of products, in multiple categories, is it possible to filter the display by more than one id? Something like this:
[wp_eStore_category_products_fancy id=1&3&7 style=3]
or
[wp_eStore_category_products_fancy id=1&3 style=3]
If all else fails, I guess I could make categories like Florida-Dermatology-Chest and Florida-Dermatology. Just seems like a lot of redundancy that way, and a lot of time building out categories.
Thank you kindly for your time.
October 16, 2012 at 1:28 pm #50402adminKeymasterLets say you have 3 main categories and the ID of these 3 categories are 1, 2 and 3
You only need the following 3 shortcodes to cover the display of all product from these 3 categories:
[wp_eStore_category_products_fancy id=1 style=3]
[wp_eStore_category_products_fancy id=2 style=3]
[wp_eStore_category_products_fancy id=3 style=3]You can assign multiple categories per product so you can still have those other categories and assign products in those categories for granularity.
For example, You can have a product called “Test Product” that belongs to category “State” and category “N.Y”. You can have another product “Test Product 2” that belongs to category “State” and category “Florida”.
Now, lets say the ID of your category “State” is 1. So the following shortcode will cover both the above mentioned products:
[wp_eStore_category_products_fancy id=1 style=3]
Let me know if that makes sense
October 17, 2012 at 1:15 am #50403rst79MemberOk, thanks for your response. I’ll give it a try. But I think adding the ability to filter by category or subcategory would greatly enhance this plugin and put you far ahead the competition. Thanks again for these great plugins!
December 28, 2012 at 11:17 pm #50404jharlinMemberI agree with rst79, in that I’ll be selling hundreds and then thousands of ebooks under a diversity of overlapping categories. I could really use a way to filter by category and subcategory. I’m just installing eStore now and learning about it as I go, so perhaps I’m missing something. My ideal would be to assign each book some keywords or tags so that customers can enter, for example, “Nepal, travel, climbing” and get a list of all books that cover travel and climbing in Nepal. Does this ability already exist? Thanks.
December 29, 2012 at 11:49 pm #50405adminKeymaster@jharlin, That sounds more like you are talking about search. eStore has a product search feature. Check the shortcodes list from our documentation and you will see a shortcode for place a product search box.
You can add tags in the product description of each product to help with the search. You can also, assign as many categories as you want to a product. So when you are listing your products by categories, your customers will be able to browse products by category.
-
AuthorPosts
- You must be logged in to reply to this topic.