Is there a way to assign unique categories to individual product variations? For example a site that sells baby bibs, in pink or blue. You'd have one product (the bib) with two variations (colours). You might also have two categories, Boy Bibs and Girl Bibs.
Could the pink bib variation be assigned to the Girl Bibs category, whilst the blue bib variation is assigned to the Boy Bibs category? The only difference between the two bibs is the colour so it makes sense to have them setup as product variations.
Previously the client handled this in OpenCart by duplicating products to assign them to their respective category which seemed the wrong way to do it.
EDIT:
I suppose this scenario is a bit like 'six of one, half a dozen of the other' - neither way is wrong or right and the answer might come down to how the client wants to handle orders that are generated
In my opinion that is not possible as the product (the main product) is bound to one or multiple categories, variations are linked to the main product. So either do as with OpenCart - duplicate the product remove the unneeded variations.
Related
there's this great plugin that you can put selling points to all products on the store but the problem is that you can't specify categories or products to show it it just shows the same ones everywhere. I tried finding an alternative - even a paid version and i can't. Does anyone know of alternatives or can you tell me how to modify it to specify categories at least?
https://wordpress.org/plugins/woo-usp/
It's not working as I would like to, and as i have seen online many people have the same issue, you can't specify products or categories that you can post the information on
I have two main categories i.e. Buy and Rent, and both having the same products. Now I want to show different prices for the buy category and a different one for the rent category for all products. Is there any way to do that?
You can't set the prices differently in woocommerce for different categories. You really have a few options:
Don't make rent and buy categories. Make them attributes or variations on products and use conditionals.
Use hooks at pretty much every stage of checkout to adjust the pricing based on a cookie or temp variable. This will be a nightmare for reporting.
Make separate products. You can use hooks to update the inventory levels on the sale/rental of the offsetting product if total inventory is an issue.
I'm trying to list products as following.
Men: Contains all the products related to men.
Women: Contains all the products related to women.
Brand: Contains all the brands, which leads to products both men and
women.
As you can see this isnt a clear hierarchy. I'm thinking about way how we can do this?
You Need to create three product category to separate all these product. You need to do .....
1. Go to Products -> Categories. Then you need to add three categories like Men Women and Brand.
2. After that, When you add product or edit your product, you just need to check the category of the product.
I am looking for a way to add product variations per category. For example: Category t-shirts: -> variants: size, color, etc.
I know it can be added per product, but that can a huge thing when there are lots of products. It would be easier to simply set them on category, since this is what my client would like.
Hope I explained it clearly.
Thanks.
I have set up a custom post type with custom tags and categories.
I want to show posts by country AND by category and the categories need to be common to all countries. So if the user chooses a country from a drop down (or something) then all the categories of that country should be listed.
South Africa
- Sport
-- Golf
--- Irons
One option is to make the countries all PARENT categories with unique child categories for each country. But that will eventually get complicated and show looooong lists of duplicated category names in the post editor. Not a very smart way you'll agree.
The other option I thought about was using Tags and Categories together, where the countries could be added as tags and the categories would then all be common. My question is how would I make a dynamic list of countries that will display the categories from a particular tag/country?
Is there maybe a simpler/better option you can suggest?
EDIT
#Mike Thanks for this. This is the route I have been playing with since posting the Q, kind of. I have set up a custom post type with a custom hierarchical taxonomy called Product Categories and another custom non-hierarchical taxonomy (tags) called Countries. I then created a new archive template that displays all the tagged posts. At the moment it displays all the tagged posts but what I am trying to get it to display is a list of categories in a tag instead... if that is at all possible. So say now I have two posts: 1. Brown Sneakers which is in the Category GOLF child of SPORT and tagged USA and 2. Pink shorts which is in the Category LADIES child of CLOTHING and tagged USA... when viewing USA tag page I would like to see as a list CLOTHING and SPORT (with its sub cats of course). There are going t be many countries sharing categories like sport and clothing.
Since this quite old question ranked pretty high when I was researching the topic and does not really provide an answer, let me point these two solutions/threads out:
Here it is discussed how an URL for a combined tag/category query does work and how it can be made even better with a rewrite rule:
https://wordpress.stackexchange.com/questions/312324/rewrite-url-with-category-and-tag-combined-using-wp-rewrite
This thread examines a filter for category queries that passes and follows an already active tag (or other taxonomy) too:
https://wordpress.stackexchange.com/questions/147820/browse-by-category-and-tags
I would use custom taxonomies. You'd want a taxonomy for each of your data types (country, sport, equipment, team, player, etc).
You'll need to register_taxonomy() for each one, and you might want some hierarchical taxonomies, so you can kind of combine them into one:
Team/Player Taxonomy:
Team A
Player A1
Player A2
Team B
Player B1
Player B2
So, you'll have to play around with the best solution for when to use a NEW taxonomy and when to just use a hierarchical taxonomy. As far as I know, you can accomplish the same thing either way.
Ways to organize your content:
Custom Post Types (hierarchical CPTs add another layer of organization)
Custom Taxonomies (hierarchical CTs add another layer of organization)
For a hierarchical taxonomy, you have to add each sub-item manually
When adding a custom taxonomy, you can choose which post types to apply it to
As I was writing this, it occurred to me, there's not a great way to create a custom taxonomy FROM the posts in a custom post type. I did a search and found http://wordpress.org/plugins/cpt-onomies/ this plugin, which might be helpful.
Good luck!