Support » Plugin: WooCommerce & qTranslate-X » Issue: attributes with special characters in the name

Viewing 1 replies (of 1 total)
  • Crosspost with

    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!

Viewing 1 replies (of 1 total)
  • The topic ‘Issue: attributes with special characters in the name’ is closed to new replies.