I have been wrapping my brain around categories and attributes but still can not decide what might be best.
I have a woocommerce installation for a travel agency website for singles
To built a structure we have a few fixed elements to keep in mind.
1 age groups (eg: 22-35 year, 35-47 year,…)
2 Destinations
3 Type vacation (skiing, sailing, beach, adventure,…)
4 Period (month of the year)
Since I want to use filters my first thought was to use the age groups as categories and than use the destinations, type vacation and period as attributes. Like this I can make my filters.
But for some reason It doesnt feel good.
Is there a better way to structure my vacations and filters?
Any hints and tips are welcome
Roger
]]>To anyone who isn’t familiar, there are two ways to create a product attribute:
The issue mirrors a problem with WooCommerce’s own “Filter by Attribute” Gutenberg block, where you can add filters that have been created when editing a product directly (2), but they won’t display on the resulting page. With the “Filter by Attribute” Gutenberg block, however, you’ll see a warning on the Gutenberg preview that there are no products matching the attribute.
It’s not straightforward to troubleshoot the issue, so it might be good if this plugin could prevent the user form adding filters for product attributes created when editing a product directly (2) in the first place, since the filter won’t be displayed anyway.
Alternatively, maybe the plugin could display a warning when the user attempts to do this, similar to how the “Filter by Attribute” Gutenberg block behaves.
I have several product attributes and for some of them I would like to display the archive page of it (not of one of the terms).
As an example, a product has an attribute “brands” and there are terms like “brand 1”, “brand 2”.. so I thought calling the url /brands/ would show all brands… but I get a 404..
I have already updated the taxonomy settings for some attributes in order to allow the archive pages of the terms: /brands/brand-1/ now works (before it had also 404).
I have read somewhere in some forums that WooCommerce does not allow the access of the archive page in some pre_get_post filter.. Would you give me a hint where I can activate the archive page?
The alternative would be to create a template for “all” and make my own query.. but I’d really prefer to use the existing templates…
Best regards,
WBW
Many thanks for this great plugin, which I am a subscriber of the Pro version.
I have just turned my website into multilingual using Polylang – and the invoice attributes (e.g. “Rechnung”, “Beschreibung”) are kept correctly in German from the created template.
Now I would like to know if it is possible to push/retrieve the product name and attribute/variations from the original german product (de)?
If this functionality is not implemented into Germanized, would it be possible to accmplish this using custom PHP code?
Many thanks and kind regards,
Roberto
The plugin seems to work well everywhere else.
https://prnt.sc/XSqJgZM0zYnO
]]>But does it support graphql?
For example, I created color attribute of color type with red, green, blue color terms, and assigned hex code. Then assigned it to products. How do I get the attribute type (‘color’) and the value (hex code) when I am listing product variations?
query getProducts {
products {
edges {
node {
slug
... on VariableProduct {
name
allPaColor {
nodes {
variations {
nodes {
attributes {
nodes {
label
name
value
}
}
}
}
paColorId
}
}
}
}
}
}
}
This gives label, name and value for color attribute (available in default woocommerce) associated to product, example:
"products": {
"edges": [
{
"node": {
"slug": "product-2",
"name": "Product 2",
"allPaColor": {
"nodes": [
{
"variations": {
"nodes": [
{
"attributes": {
"nodes": [
{
"label": "Size",
"name": "size",
"value": "S"
},
{
"label": "Color",
"name": "pa_color",
"value": "blue"
}
]
}
}
]
},
"paColorId": 22
},
}}}}
But I am not finding the field in GraphIQL IDE which can give the color hex code and the type of attribute alongwith.
How to query the set swatches with products?
—
Also how to independently query the attribute terms saved in woocommerce? To get name and value along with the added fields by this plugin — type and the color code. I mean how to independently get this list of terms in color attribute with color code?
Please suggest.
We have products that come in lots and lots of different sizes. Industry professionals usually know what metric size they want. Home users often have no idea.
Our industry professional customers log in to the professional portal (if relevant) and should be able to see and choose from full range based on metric size.
For everyone else, I would just like to list the most common sizes and label them small, medium… So basically two things – exclude some of the variations, and change the attribute name displayed depending on whether logged in.
I can’t list the product twice as it would mean two product codes. Orders are pushed through a couple of other software packages and this would cause chaos.
Is what I am after possible? Thank you!!!
]]>What I am trying to achieve: Enable ‘Simple Product’ pages to display ‘Attributes’ (exactly as Variable Product Attributes are shown)
What I already know:
I know that it can be done by creating a Variable Product with just one variation instead of a Single Product. I have used Variable Products before and I don’t want to create 1 additional ID for every single simple product.
Why am I trying this: Weights shown on any product page is the shipping weight. I want to show the product actual weight and actual volume (eg 100ml). Volumes are not supported by default and I want a consistent/elegant way to show it to customers. Since I am already using attributes for Variable products, I can quickly reuse the same attribute values for Simple Products.
What I don’t want to do:
– Write volume in the Product header
– Create variable products with 1 variation
I am sure there are lots of people facing this issue and would like a good solution. I just need the Attribute values to be shown for Simple Products in the exact place as Variable Products. I can customize the css part.
I am comfortable editing functions.php
Can anyone help me please?
]]>