Hi
We have created a search app using Toolset, which is based on Relationship.
The relationship is based on a new taxonomy called "Models", in which there is a one to many relationship of one "Product" to several "Models".
We have started using variable products, where each product has a number of variations, each one has a unique SKU number.
Is it possible to modify the "Relationship" view, so I can connect "Models" to a variable "Product" ?
Thanks, Yair
Hi there,
a Relationship in Toolset is working on a custom post type. The product is a custom post type and there is no differentiation between a Simple or Variable product as both of them are considered as a custom post type of products.
Thanks.
Hi
Thank you for your reply.
The way I'm setting up the relationship, is by "connecting" the model to a product.
Almost all of the products that are listed in the website, are of variable type, where each variation has its own SKU number.
When opening the "Connect Product" dialog box, the name search shows me both simple products and variable products.
However - the variable product doesn't show the product variations, so I can't use it.
So my request - is it possible that I use the product SKU in the product name search rather than its name?
Thanks, Yair
Hi Yair,
No unfortunately it is not possible. The reason is exactly what I mentioned which is that the relationship is between two custom post type.
The custom post type in woo-commerce is named as product.
There is only ONE product entry whether it is a simple or variable product.
Sio for a variable product you have only ONE custom post type entry of product. The variations are added by Woocommerce and it handles them, but WordPress sees all the SKUs and variations of a product as ONE entry.
That is why you can not choose a variation of a variable product as a connection and you need to select the whole product itself.
Thanks.
My issue is resolved now. Thank you!