wordpress adding product attributes hierarchy - wordpress

I have 1 attribute called Weight in Products > Attributes. I have a nice hierarchy in here and its organized like the picture below.
Organized attributes:
My problem is when you go to add a new product and under attributes I added my attribute called weight. But in the select dropdown there its not organized. See the image below for the unorganized select list of attributes when adding a product.
Unorganized attributes:
How can I get my select list when adding a product to look like the one that is under Products > Attributes? Or, how can I get image #2 to look like image #1?

Related

Need help finding way to Automatically add product attribute based off of tag

I am trying to find either some code or a plugin that is able to find a product tag and based off of what the tag is, make a new or assign an existing attribute to that product.
i have tried searching for a solution but cannot find one.
eg1: Product has tag:
brand_example
i want that to turn into the value example under the attribute brand automatically
eg2: Product has tag:
mat_example
would turn into the value example under the attribute material.

Article Category list disabled

I trying to add some category of my articls, and it saved perfectly in database but I can't see it on category table. I can see just that:
Like you see I have 3 elements but it not displayed on table.
How I can fix that ?

Variable product in WP woocomnerce - only some attrs

Hi I am using WP and woocommerce.
I created variable product but it use all of attributes. It is possible to create variation which will use only some attributes?
Lets say that we have attrs: color, size, gender
I would like to create variation:
color: black, size: XL - but I do not want to specify gender, because it does not matter to me
Is it possible?
Thanks
You can always just remove the gender attribute from Products > Attribute.
Or when you are creating a new product, you can specify specific attributes you wanna use.
Add new product
Set product data to "variable product"
Go to "Attributes" tab
Select attribute from dropdown on top right (gathered from saved attributes)

field image didn't appears in my view

I am using Drupal commerce, I have been wanting to create views for recently added products, actually that works (pretty easy) but when I want to add the field image, images didn't appear. I will try to illustrate my steps:
1) create new view, show: content; of: product display; sorted by: newest first.
2) add relationship (content: referenced products) then I required it.
what I did wrong!
thanks for any answer.
You have to add the image field from the referenced product (i.e the image field, using the relationship like "(Referenced Product) Image") in your view. In Drupal Commerce, image fields on products are usually product field and not product display field as they might change across products variations.
If you already add the image field, make sure you choose "Use relationship : Referenced product" in the image field settings, otherwise Views will keep looking for this field on the product display, not on the product itself.

Advanced Drupal View filter for taxonomy

I have a content type called product-templates. In this content I capture the following fields: Title (core), content body, taxonomy term reference, and 6 different file types. A new product-template content is created for each template we have. So let's say our products are widgets, broken down by color.. blue, black, brown, pink, green, etc...
The taxonomy has the primary product template categories, for example: blue widgets, black widgets, etc.. Each will have multiple templates for the different sizes, so the term will reference size/style, widget small, medium, large, square, round, etc.
Using the default taxonomy override that comes with views taxonomy/term/% and limiting the filter to product-templates and using fields, rather than full content I get a list something like this: blue-widget small -> template b1s, template b2s, template b3s… / blue-wiget medium -> template b1m, template b2m, and so on. So what I end up with is a full listing on all the product templates with their associated template files.
What I would like to have happen is that when the visitor is on taxonomy/term/% they are presented with a drop down or jump menu that shows the different options, then when they click on (for example) blue-widget small the associated templates render/populate on the page. So basically I want to remove the listing and turn it into a selectable area. Since there could be a large number of options/sizes I don't want to have a list that goes 20 scrolls, and I don't want to have to use a pager. It seem more logical to present them a drop down list that has all the options/sizes they select the one they want and then just those templates pull up.
Any suggestions on how this would be accomplished?
You should be able to accomplish this by adding filter to the view which is taxonomy term, then set it to exposed and use the following url to access all documents.
taxonomy/term/all (this should display all documents)
This will mean that it is applied for all vocabularies, so not a problem if you only have one.

Resources