• Hi

    I think the plugin has got an error after the last update.

    I am running version 2.1.10 on the last WordPress version and many orders start coming with same city, but the city is not in that county.

    It is city Agârbiciu from county Cluj, country Romania. I don’t know why.

    Please check screen capture with last 3 orders: https://ibb.co/3y0f8jWc

    Not all orders get this error. It seems to be random. I have conducted 2 tests orders also, one was with problem, other ok.

    I will revert to previous version of your plugin until you can take a look.

    error log for last 3 orders:

    [09-Dec-2025 18:23:13 UTC] Searching for: City = Agarbiciu, County = DJ, Street = 1 Decembrie [09-Dec-2025 18:23:13 UTC] No match found for City = Agarbiciu, County = DJ, Street = 1 Decembrie [09-Dec-2025 18:23:13 UTC] Searching for: City = Agarbiciu, County = DJ, Street = 1 Decembrie [09-Dec-2025 18:23:13 UTC] No match found for City = Agarbiciu, County = DJ, Street = 1 Decembrie [09-Dec-2025 18:23:13 UTC] Billing ZipCode: | Shipping ZipCode: [09-Dec-2025 18:23:13 UTC] full shipping address:1 Decembrie , Agârbiciu, DJ, RO, [09-Dec-2025 18:23:18 UTC] Searching for: City = Agarbiciu, County = DJ, Street = 1 Decembrie [09-Dec-2025 18:23:19 UTC] No match found for City = Agarbiciu, County = DJ, Street = 1 Decembrie [09-Dec-2025 18:23:19 UTC] Searching for: City = Agarbiciu, County = DJ, Street = 1 Decembrie [09-Dec-2025 18:23:20 UTC] No match found for City = Agarbiciu, County = DJ, Street = 1 Decembrie [09-Dec-2025 18:23:20 UTC] Billing ZipCode: | Shipping ZipCode: [09-Dec-2025 18:35:19 UTC] No abandoned orders to process at 2025-12-09 20:35:19 [09-Dec-2025 19:31:24 UTC] PHP Warning: Undefined variable $should_use_billing_info in /home/kitsigur/public_html/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-iframe-whatsapp-utility-event.php on line 87 [09-Dec-2025 19:31:26 UTC] Searching for: City = Targu Ocna, County = BC, Street = Capitan Busila bloc A 4 scara B [09-Dec-2025 19:31:26 UTC] Found ZipCode (city match): 605600 [09-Dec-2025 19:31:26 UTC] Searching for: City = Targu Ocna, County = BC, Street = Capitan Busila bloc A 4 scara B [09-Dec-2025 19:31:27 UTC] Found ZipCode (city match): 605600 [09-Dec-2025 19:31:27 UTC] Billing ZipCode: 605600 | Shipping ZipCode: 605600 [09-Dec-2025 19:31:27 UTC] full shipping address:Căpitan Bușilă bloc A 4 scara B , Târgu Ocna, BC, RO, 605600 [09-Dec-2025 19:31:30 UTC] Searching for: City = Targu Ocna, County = BC, Street = Capitan Busila bloc A 4 scara B [09-Dec-2025 19:31:30 UTC] Found ZipCode (city match): 605600 [09-Dec-2025 19:31:30 UTC] Searching for: City = Targu Ocna, County = BC, Street = Capitan Busila bloc A 4 scara B [09-Dec-2025 19:31:31 UTC] Found ZipCode (city match): 605600 [09-Dec-2025 19:31:31 UTC] Billing ZipCode: 605600 | Shipping ZipCode: 605600 [09-Dec-2025 19:31:54 UTC] Searching for: City = Targu Ocna, County = BC, Street = Capitan Busila bloc A 4 scara B [09-Dec-2025 19:31:54 UTC] Found ZipCode (city match): 605600 [09-Dec-2025 19:31:54 UTC] Searching for: City = Targu Ocna, County = BC, Street = Capitan Busila bloc A 4 scara B [09-Dec-2025 19:31:54 UTC] Found ZipCode (city match): 605600 [09-Dec-2025 19:31:54 UTC] Billing ZipCode: 605600 | Shipping ZipCode: 605600 [09-Dec-2025 19:35:10 UTC] No abandoned orders to process at 2025-12-09 21:35:10 [09-Dec-2025 19:50:16 UTC] PHP Warning: Undefined variable $should_use_billing_info in /home/kitsigur/public_html/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-iframe-whatsapp-utility-event.php on line 87 [09-Dec-2025 19:50:17 UTC] Searching for: City = Agarbiciu, County = IF, Street = Frasinlui nr 6 [09-Dec-2025 19:50:18 UTC] No match found for City = Agarbiciu, County = IF, Street = Frasinlui nr 6 [09-Dec-2025 19:50:18 UTC] Searching for: City = Agarbiciu, County = IF, Street = Frasinlui nr 6 [09-Dec-2025 19:50:18 UTC] No match found for City = Agarbiciu, County = IF, Street = Frasinlui nr 6 [09-Dec-2025 19:50:18 UTC] Billing ZipCode: | Shipping ZipCode: [09-Dec-2025 19:50:18 UTC] full shipping address:Frasinlui nr 6 , Agârbiciu, IF, RO,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter automotifexpert

    (@automotifexpert)

    It seemed that with the last version, when going to checkout, that city name Agârbiciu was already selected under county name Cluj. Now after going back one version the city name is blank.

    Thread Starter automotifexpert

    (@automotifexpert)

    I compared the JS file between the previous working version and 2.1.10.

    In the old version, in cityToSelect, the script always added a placeholder option with empty value and kept the city empty if the current value was not found:

    var $defaultOption = $('<option></option>')
    .attr('value', '')
    .text(ry_wc_city_select_params.i18n_select_city_text);
    $citybox.empty().append($defaultOption);
    ...
    if ($('option[value="' + value + '"]', $citybox).length) {
    $citybox.val(value).change();
    } else {
    $citybox.val('').change();
    }

    In version 2.1.10, the new cityToSelect implementation:

    $citybox.empty();
    ...
    let $citySelected = $citybox.find('option[value="' + value + '"]');
    if ($citySelected.length) {
    $citySelected.prop('selected', true);
    } else {
    $citybox.find('option:first').prop('selected', true);
    }

    This removes the placeholder and, when the current value does not match any city for the selected state, it automatically selects the first city in the list.

    For Romania, in county Cluj, the first city is Agârbiciu, so as soon as the customer selects Cluj, the city field is pre-filled with Agârbiciu instead of staying empty.

    This is why I get many orders with city = Agârbiciu and a different county (DJ, IF, etc.), because the user only changes the county and does not notice that the city field was auto-filled.

    I suggest restoring the previous behavior:
    • keep a placeholder option with empty value, and
    • if the current value is not found in the list, keep the city empty instead of auto-selecting the first city.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.