Would love to be able to use the following with WC:
Can you please explain a use case for this in relation to WooCommerce?
John Rodriguez sells burgers and sausages…
Product categories: burgers and sausages…
Product tags: spicy, sweet or meaty or vegetarian…
Country of origin: Israel, Turkey or Japan…
Fat Content: low, very low or high…
and so on…
So as well as being able to search by tags and categories, you can also search products (in this case burgers and sausages) by country of origin, fat content and so on…
Now that I have given you an explanation, if you like my idea and want to develop a paid version, as I can see you are a developer — I’ll accept a free version — courtesy of “intellectual property”. I have many more great ideas though…
Hmmm if this is all you need, it is quite simple. Just add the taxonomies you want to the WooCommerce post type “product”. You don’t even need 3rd party plugins for this.
What you said sounds very interesting, but I can’t see how to achieve this?
Please have a look at this document -> http://codex.wordpress.org/Function_Reference/register_taxonomy
Your assistance deserves a long reply.
Thanks, but your link is of no use to me. Seriously.
You have got nice themes for sale though…
I have heard 1000s saying its quite simple, on various topics, yet they all tell you to go and read/learn about it in the end — they all have something in common these characters. They make it simple, for themselves.
If I was into php AND WordPress development I wouldn’t be here asking questions… Think about it, I would already know the answers. That’s how good I would be.
First you tell me it’s quite simple, and I don’t even need a third party plugin…
Next you tell me to read stuff aimed at WordPress developers. Yes, I guarantee you, for developers, this is piece of cake, that I know. I have seen way more serious/advanced code. What you showed me is for beginners. I agree with that.
In my field I don’t ask questions, I give answers and I don’t tell people to go and read books. PHP / WordPress is not my field. I buy products, plugins, themes, extensions, and I go around forums asking questions here and there.
If it is “quite simple” — why don’t you show me the ins and out? Then I will believe you.
Otherwise, it’s quite simple — but who says ???
Anyone else out there?
Try to answer something like; “this is who we do it…” OR please don’t bother.
– For those interested and/or willing to help — I tried something, I am getting close;
I added the following in my functions.php: http://pastebin.com/qtBHtp3G
Which I generated from: http://themergency.com/generators/wordpress-custom-taxonomy/
Then I added the following line in meta.php which is located in woocommerce/templates/single-product/
<br><?php echo get_the_term_list( get_the_id() , 'countries', '<span class="tagged_as"> Countries: ', ', ', '</span>' ); ?>
The new taxonomy is showing on the edit page, product page and sidebar, but when I click on it, it goes to the 404 page — technically it does not exist (yet).
Any profesional amateurs out there who want to chime in?
Thanks, but your link is of no use to me. Seriously.
You asked how to add a custom taxonomy? Royho provided you with the precise Codex page that shows you how to do this… with a cut and paste-level example. You also have found the themergency taxonomy generator, so you don’t even need to come up with the code yourself. If it is seriously of no use at all it is because you could not be bothered to read and expected someone to do the work for you.
Royho could’ve been more clear about the WooCommerce functionality. WC has built-in something called “attributes” which really are just taxonomies that you can create on the fly. I don’t know if you will read this, but here is the WC documentation on the subject:
Look, no one starts out as a WordPress wizard. We all start out struggling to even find the right way to phrase questions. But we Google and we ask questions and we read and we read and we read and we try. It can be frustrating, but that is how you learn. Just as you catch more flies with honey than with vinegar, you’ll get a lot more FREE help by being courteous.
I had a question about attributes.
Right now, I have a few set up (but there is no place on the site where a user can find them from, which is as intended for now), I simply use them in the product specifications — very convenient.
However, when I Google my shops name, these attributes are showing up. What’s more, is when I click one, I get a weird page with all of the products with that attribute after one another, but it’s very messy. My user’s profile picture also appears before each product.
Each one also gets bullet-points after that (one is empty):
– Leave a comment
Seems to be a very strange bug. Any idea what can be causing it? I just updated to the latest versions of everything (I don’t know if it was there before). I’m also running the MyStile WooTheme.
Thank you! 🙂
You asked how to add a custom taxonomy?
More taxonomies In WOOCOMMERCE.
Royho provided you with the precise Codex page that shows you how to do this… with a cut and paste-level example.
I repeat myself, this page is/was of NO USE to me. I already knew about it — it did not show anything in regards to adding more taxonomies in Woocommerce.
You also have found the themergency taxonomy generator, so you don’t even need to come up with the code yourself.
Exactly. And don’t forget the More Taxonomy plugin as well… I don’t need help adding more taxonomies in WordPress posts/pages.
If it is seriously of no use at all it is because you could not be bothered to
read and expected someone to do the work for you.
I feel bullied. You’re wrong — I read it already, it doesn’t help with Woocommerce in regards to adding taxonomies.
Royho could’ve been more clear about the WooCommerce functionality.
WC has built-in something called “attributes” which really are just taxonomies that you can create on the fly. I don’t know if you will read this, but here is the WC documentation on the subject:
I already know about Woocommerce Attributes thanks, I have already read about it, and I have already tested it a while ago — nothing new to me. These don’t show up below the (META) categories and tags on product pages AND, I might not want to use a sidebar widget… I didn’t ask for Attributes.
Maybe you can tell me how you’ve added attributes to the menu bar?*
Look, no one starts out as a WordPress wizard. We all start out struggling to even find the right way to phrase questions.
Never said I wanted to be a developer.**
But we Google and we ask questions and we read and we read and we read and we try.
I do Google, and funny enough I came across several of your posts/requests including one on this *very topic. No-one told you to go and read a page.
I Googled Woocommerce Taxonomies, and your name cropped up on several occasion, I smiled, because you and I are also interested in the jPalyer — which by no-way, again, no-body told you to go and read more pages when you asked about a 2.1 update…
Just as you catch more flies with honey than with vinegar, you’ll get a lot more FREE help by being courteous.
I speak from the heart AND I am always surrounded by lovely ladies — here is the proof 😉
*I have already purchased 16 x official Woocommerce extensions, 3 x Woothemes, 1 x premium third party Woocommerce theme, 1 x premium third party Woocommerce extension AND a third party annual subscription where I get access to a bunch premium themes. This happened just within a couple of months. If the extension was out there, I would have already purchased it. But I am not happy when I suggest/ask something, and the idea gets “repacked — on sale — no long after”.
So I am being asked for a “use case”…
Then I am being told that it is very easy to achieve…
Further — I am being told to read stuff…
In the end, I don’t see any solution(s) and now I am the “bad guy”.
Ok, I am the bad guy, I can leave with that… until you meet the real bad guys.
Why bother asking questions in the first place then? Seriously.
Me too I can around public forums and go and tell people to read stuff… I won’t allow myself to do so, because in my book it is bad manner and pretentious.
I don’t like Bacon. Pigs are my friends.
More taxonomies In WOOCOMMERCE.
Not at all different from taxonomies any other way. Hence the links directly to the Codex and the Woo Docs.
I would also benefit from a more beginner-friendly approach to taxonomy issue.
The woocommerce approach seems to be different in the sense that the attributes are added within the shop loop under products rather than a part of the WP posts.
I’ve managed to add a few tweaks to the entirety of the woocommerce template but I’m at a loss as to how to display the custom taxonomy term/slug/attribute as a link within the product pages.
@roleat, we are onto something… keep me updated please. I’ve shared what I could.
If you try my code above ( meta.php + bin link), you will see that taxonomies are showing below the categories and tags on the product page, that’s a start…
But as said, if you click on it, it doesn’t work.
The plugin More Taxonomy could work, but it needs a little tweak.
I think there aren’t any “hooks” to show taxonomies where “we” want, so I added the code manually to meta.php.
Otherwise, there is a possible hook, via the Woocommerce_share, but that’s for social icons.
I tried something else as well;
I don’t remember exactly what I did, but at some stage I managed to get it to “work”, but the issues was that when you clicked on the new taxonomy, it would return a standard post view, as opposed to product archive view, and I added the custom taxonomies to the menu. Seriously, I can’t even remember what I did…
- The topic ‘[Plugin: WooCommerce – excelling eCommerce] More Taxonomies’ is closed to new replies.