Ich habe ein Problem mit Kategorien und Unterkategorien in Wordpress Plugin - Woocommerce. Ich erstelle ein Skript, das eine Kategorien und Unterkategorien erstellen würde, das Problem ist, dass ich nicht vollständig verstehe, wie all das in Woocommerce DB-Struktur funktioniert.Wie werden Kategorien und Unterkategorien für Woocommerce in DB gespeichert?
Das ist, was ich in der Lage war zu tun:
in "wp_terms":
term_id | name | slug | term group
20 | Parent category | parent | 0
21 | Children category | children | 0
in "wp_term_taxonomy": zum Teufel don
term_taxonomy_id | term_id | taxonomy | description | parent | count
1 | 20 | product_cat | | 0 | 0
2 | 21 | product_cat | | 20 | 0
Und das funktioniert, aber warum 't:
in "wp_term_taxonomie":
term_taxonomy_id | term_id | taxonomy | description | parent | count
1 | 20 | product_cat | | 21 | 0
2 | 21 | product_cat | | 0 | 0
Irgendwelche Kabel?
Vielen Dank für alle im Voraus. :)
Was ich verstanden habe, ist, Sie wollen Kategorie/Unterkategorie von Frontend oder durch Skript erstellen, oder? – Denish
Ich denke, es wird helfen, wenn Sie Ihren Code veröffentlichen, der hier nicht funktioniert. – designtocode