You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an custom product attribute called "Größe" and my main website language is German.
When my website is in German, the select menu gets populated normally <select id="groesse" class="" name="attribute_groesse" data-attribute_name="attribute_groesse" data-show_option_none="yes"><option value="">Wähle eine Ausführung</option><option value="Flach 300 mm" class="attached enabled">Flach 300 mm</option><option value="Hoch 400 mm" class="attached enabled">Hoch 400 mm</option></select>
When I switch to English, the custom product attribute is encoded in another way <select id="grose" class="" name="attribute_grose" data-attribute_name="attribute_grose" data-show_option_none="yes"><option value="">Choose an option</option></select>
I haven't found a solution yet to output the German version of the sanitized name, if anyone knows how to do that, would be great. Thanks in advance for any hints!
The text was updated successfully, but these errors were encountered:
Hello,
this may be related to this issue
I have an custom product attribute called "Größe" and my main website language is German.
When my website is in German, the select menu gets populated normally
<select id="groesse" class="" name="attribute_groesse" data-attribute_name="attribute_groesse" data-show_option_none="yes"><option value="">Wähle eine Ausführung</option><option value="Flach 300 mm" class="attached enabled">Flach 300 mm</option><option value="Hoch 400 mm" class="attached enabled">Hoch 400 mm</option></select>
When I switch to English, the custom product attribute is encoded in another way
<select id="grose" class="" name="attribute_grose" data-attribute_name="attribute_grose" data-show_option_none="yes"><option value="">Choose an option</option></select>
This seems to be related to the different encoding of special characters äöü and ß from the function sanitize_title( $attribute_name ) that is to be found in woocommerce/templates/single-product/add-to-cart/variable.php line 38 and 41
I haven't found a solution yet to output the German version of the sanitized name, if anyone knows how to do that, would be great. Thanks in advance for any hints!
The text was updated successfully, but these errors were encountered: