This support ticket is created hace 5 años, 11 meses. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
That's not possible. It wouldn't be possible if you were writing your own custom WP_Queries by hand, and so it is not possible with Views.
You can only filter posts by properties of those posts.
Product categories belong to products. They are not a property of orders.
You can only filter orders by fields or taxonomies of orders.
What you are aiming for would require a custom solution. You could try consulting the Toolset Contractors page for someone to develop this: https://toolset.com/contractors/
If I set a relationship between Product and Orders, could I get category rom the parent (product) and use it as filter?
What do you think? Should be possible?
OK Nigel, I find a possible solution. I set a relationship between orders and product.
So in the view I can Get the category of the product as parent, and use it as filter. It works.
I only need your help to hiw to set this relationshio automatically. When a new order is created ,should be automatically set a relationship with the product of the order. Please , can you help me in this issue?
Sorry, but filtering by fields (or taxonomies) of related posts isn't yet supported. The intention is to add such support, but among the competing demands on the developers' time it hasn't yet made it to the front.
In the meantime you would need to duplicate the product category taxonomy on orders to be able to filter orders by product category. So you could modify the code you use above to connect an order with a product to instead get the product category from the product and apply it to the order post.
You would then be able to filter orders by product category.