• Resolved yuriivarrs

    (@yuriivarrs)


    Hi, I want to fix the wrong order of the first name and the last name fields on my checkout page.

    I think WooCommerce automatically swaps the order of first name and last name if you set your country to Japan during the initial setup, but I don’t want the plugin to change the order without even asking me.

    This is how my page looks like now and how I want to change it:

    Current order:
    Last name, first name

    What I want:
    First name, last name

    How do I change the order back to normal? Why does the plugin change the order automatically? I don’t want such a feature.

    By the way, changing my country to the US didn’t solve the issue. Also I don’t use any plugin to optimize WooCommerce for Japan.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support abwaita a11n

    (@abwaita)

    Hi @yuriivarrs,

    We’d like to take a closer look. Could you kindly share with us the site’s URL?

    Thanks.

    Thread Starter yuriivarrs

    (@yuriivarrs)

    Hi @abwaita, thanks for your reply. I sent you a Slack message because I didn’t want to disclose my URL to the public. Please note that it’s a work-in-progress site.

    • This reply was modified 3 years, 2 months ago by yuriivarrs.
    Plugin Support abwaita a11n

    (@abwaita)

    Thanks for getting back, Yuri!

    * I understand the concern regarding sharing the URL here. Just to mention, in the future, you could post the URL on a Google Docs file and share a link to it here. This way, the other contributors who land on this thread can access the URL and you can delete it once the issue is resolved.

    Checking your site, I see that the fields are displayed quite okay: first name then last name.


    Link to image: https://snipboard.io/eUsKJ0.jpg

    Is there another step to reproduce the problem?

    Thanks.

    Thread Starter yuriivarrs

    (@yuriivarrs)

    Hi @abwaita,

    thanks for your reply! I’ll make sure to upload my URL on Google Drive from next time.

    So it looked OK on your end? So strange… I reloaded my page just now and it still looks like this (last name comes first and then first name):

    https://snipboard.io/mC3aMS.jpg

    in order to reproduce this, all you have to do is just add some products to the cart and go to checkout, that’s all. I think you set your country to Japan on the checkout page, but what I meant is my store address that I had set up when I had installed WooCommerce. I have multiple WooCommerce sites, and whenever I set my store address to Japan at the beginning, the first and last names are swapped. If I set my store address to the US at the beginning, they are not swapped. However, once I have set my store address to Japan at the beginning, changing it to the USA does not help and the names stay swapped.

    Is there a possibility that WooCommerce looks at the customer’s IP address? I live in Japan, so maybe this is why the names are swapped on my end but not on your end because you don’t live in Japan??

    Thread Starter yuriivarrs

    (@yuriivarrs)

    For your information, last names come before first names in Japan. So last name –> first name is correct in Japan, but my store is global and I want the first name field to come first.

    Thread Starter yuriivarrs

    (@yuriivarrs)

    Hi again,

    I updated WooCommerce database and the names are now back to normal!

    https://snipboard.io/7Ai5oa.jpg

    For other people who have encountered the same issue, here is what I did:

    1. Change the store address from Japan to the US
    2. Schedule WooCommerce database update from WooCommerce > Status > Tools
    3. Wait until the tool is run
    4. The order of the first name and the last name fields was back to normal after a few hours

    @abwaita, although my issue has been resolved, you may want to take a look at how WooCommerce handles database because my issue was resolved by updating the database as I suspected.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    Great! Glad to know that the issue is resolved now. Thanks for sharing the steps you’ve taken.

    Running outdated software can cause all kinds of troubles and the first thing you should always do is updating to the latest available versions (first make a backup), including the database.

    As the thread is closed you can open a new topic should you have any further questions.

    Have a good day!

    Thread Starter yuriivarrs

    (@yuriivarrs)

    Thank you, but if I change my store address back to Japan and update the database, the issue will occur again and I think there is still an issue in WooCommerce. What I did is just a workaround.

    In order to eliminate the issue, I had to enter a false address (USA).

    Mirko P.

    (@rainfallnixfig)

    Hi again,

    We haven’t experienced that behavior on our test sites when performing cross-testing, so it seems more likely to be caused by a conflicting theme or plugin on your site.

    Read more about plugin and theme conflicts in our Self-Service Guide.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘The order of first and last name fields is swapped on the checkout page’ is closed to new replies.