Edit Products > Attributes > Drop Down show slug instead of name
-
Due to how we have to structure our filtering we have edited woocommerce to allow for hierarchy of attributes. This is working just fine but does result in us having to create sub-attributes for each of our parent attributes which does result in quite a few attributes that share common names. What we are trying to find is the code section in woocommerce that we can edit so that the drop down in the edit product > product data > attributes > value(s) shows the slug rather than the term name of the attribute.
For example, several parent attributes might share the same term name but the slug would be used to differentiate. So we have attr_A, attr_B, attr_C. Each of these have an sub-attribute called wood. But each of the wood sub-attributes would have a different slug.
Attr_A > term_name: Wood slug_name: wood-attr-a
Attr_B > term_name: Wood slug_name: wood-attr-b
Attr_C > term_name: Wood slug_name: wood-attr-cSo just trying to edit the drop down to display in the admin side of things to show the slug rather than the term name.
If someone can point me towards where this code might be found in the woocommerce directory.
- The topic ‘Edit Products > Attributes > Drop Down show slug instead of name’ is closed to new replies.