Ok, I edit the view to right filter: Select posts that are a children of the current post in the loop.
But it doesn´t help. Nothing changed :-D.
Detailed steps are:
1) create Product, name it "Google G Suite Business... etc."
1.0) create post in woocommerce post type product
1.1) select its category from custom taxonomy "Kategorie produktu CS"
It will have category and subcategory. "Kompletní firemní sady" > "Google G Suite".
1.2) select its brand from custom taxonomy "Značka produktu"
2) create Licensing options for the brand and name it "Google... etc."
2.0) create post in custom post type "Licenční podmínky" and select the same Brand as product from custom taxonomy "Značka produktu"
3) Create pricing table options for product
3.0) Create custom post field group for product and name it "Pricing table - Google G Suite"
3.1) Select Use Field Group when ALL conditions are met and:
This Post Field Group is used with:
Post Type(s): Obsažené služby
Term(s): Google G Suite
3.2) + Add New Field Checkboxes and setup field name "Google G Suite services"
3.3) Save option When unchecked, save 0 to the database
3.4) Add the pricing table options as checkboxes. For example:
Title: E-mail s 30 GB poštovní schránkou
Value to store: 1 (i dont change it anywhere)
Show one of these two values:
Not selected:
<li class="not-included">E-mail s 30 GB poštovní schránkou
Selected:
<li class="included">E-mail s 30 GB poštovní schránkou
and more of them. All have value to store 1.
CSS is:
li.included {
color: #0188cd;
list-style: none;
}
li.included:before {
content: "✅ ";
}
li.not-included {
color: #ccc;
list-style: none;
}
li.not-included:before {
content: "❌ "
4) Create connection between those pricing options and products
4.1) create post in custom post type "Obsažené služby"
4.2) select its subcategory "Google G Suite" from custom taxonomy "Kategorie produktu CS"
4.3) Save
4.4) Check the included services in shown checkboxes from "Pricing table - Google G Suite" post field group
4.4) Select the product from post relationship
"This Obsažená služba belongs to Produkt Google G Suite Business"
4.5) Save
And then create Second product with same categories, use same filed group and create it in "Obsažené služby" and select it checkboxes.
After that, everything works perfectly.
Then when I add product photo or change something in product, the Not selected checkboxes value are not displaying.
After that, when I go back to "Obsažená služba" post and change the post relationship to other product, save and then set it back to product which it belongs to, it show the Not selected values again.
Do you need more details? 🙂