Decode attributes in product settings.
-
I would like to be able to correctly display attributes, even if the attribute is not written in Latin. Please add corrections to /admin/class-thwvsf-admin.php file
I did it like this:
<strong class="attribute_name"><?php echo wc_attribute_label($attribute_name); ?></strong>
Replaced by:
<strong class="attribute_name"><?php echo wc_attribute_label( urldecode( $attribute_name ) ); ?></strong>
But if we limit ourselves to this, then the attributes will be forced to be written in lower case, since
sanitize_title()
is used.$attribute_name = sanitize_title($attribute->get_name());
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Decode attributes in product settings.’ is closed to new replies.