• Resolved markpasztor

    (@markpasztor)


    Dear Developers,

    The plugin is working fine. I only have one issue with it.
    After I truned on the plugin, the state combobox dissapeared from the checkout page and I only get a text box (without the value of the user state).

    Html part before activate the plugin:
    <select name=”billing_state” id=”billing_state” class=”state_select select2-hidden-accessible” autocomplete=”address-level1″ data-placeholder=”” tabindex=”-1″ aria-hidden=”true”>
    <option value=””>Válassz egy opciót…</option>
    <option value=”BK”>Bács-Kiskun</option>
    <option value=”BE”>Békés</option>
    <option value=”BA”>Baranya</option>
    <option value=”BZ”>Borsod-Abaúj-Zemplén</option>
    <option value=”BU”>Budapest</option>
    <option value=”CS”>Csongrád</option>
    <option value=”FE”>Fejér</option>
    <option value=”GS”>Gy?r-Moson-Sopron</option>
    <option value=”HB”>Hajdú-Bihar</option>
    <option value=”HE”>Heves</option>
    <option value=”JN”>Jász-Nagykun-Szolnok</option>
    <option value=”KE”>Komárom-Esztergom</option>
    <option value=”NO”>Nógrád</option>
    <option value=”PE”>Pest</option>
    <option value=”SO”>Somogy</option>
    <option value=”SZ”>Szabolcs-Szatmár-Bereg</option>
    <option value=”TO”>Tolna</option>
    <option value=”VA”>Vas</option>
    <option value=”VE”>Veszprém</option>
    <option value=”ZA”>Zala</option>
    </select>

    And after activate it:
    <input type=”text” class=”input-text” name=”billing_state” id=”billing_state” placeholder=””>

    How can I fix it?

    Thank you for your help!

    Best regards,
    Mark

Viewing 1 replies (of 1 total)
  • Plugin Author Diego

    (@daigo75)

    The State field is indeed a plain input field, which is transformed into a dropdown and populated by WooCommerce using JavaScript. If that doesn’t work, then it means that there is a JavaScript error somewhere. The error interrupts the execution of the scripts on the page, so the State field remains “plain”.

    Possible causes
    The most common cause of JavaScript errors is a conflict caused by another plugin, or by the theme. The easiest way to check this is to open the browser console and reload the checkout page. That will show where the error is, and give some indication on which element could be causing it.

    Features like JavaScript minification can also cause that kind of errors (JavaScript minification doesn’t always work properly, depending on how it’s performed). In such case, disabling minification, or excluding the affected scripts, will solve the issue.

Viewing 1 replies (of 1 total)
  • The topic ‘State issue’ is closed to new replies.