WooCommerce attribute parent/child based on custom field
Hello, i am have created 3 attributes on the woocommerce products -> attributes. Make, Model, Year (for cars) For example Make: Audi, Mercedes Benz, Model: A3, W203, Year: A3(2012-2019), W203 (2008-2013)... and many others. I have added all brands, models and years. This is also multivendor web and I use dokan for this. Now I have created custom filter plugin to make filter based on make selected should show me model related to this make and then year will show based on model selected. (Each model have a ACF field make_responsibile and each year have another model_responsibile) and there I set for example A3 (Audi on make_responsibile) and on year I set this A3 as model_responsibile. And the filter work based on this field.
The problem is how can I make same thing like this filter when I add new product and chose attributes, I need this to work also on dokan. So when I upload new product then to show model based on make selected and the year based on model selected.
I think I need to edit the woocommerce\includes\admin\meta-boxes\views\html-product-attribute-inner.php layout but I don't know why, and also I am not sure for that. Beacouse I have tried but not lucky
Please or to participate in this conversation.