• We’re having an issue with purchase details not recording correctly in our Sales Log and database. With WPEC 3.8.14.1, some orders were showing the Billing Country as the incorrect country in the Sales Log. On these orders that are showing the incorrect country, it seems to be recording the Billing State’s number and changing it to the country. For example, in one order in our Sales Log, the Billing Country is listed as Guatemala, even though it should be the USA.

    I ran several tests to see what might be going on. If you enter in this customer’s exact billing and shipping address, and products they ordered, I did not reproduce the error if I enter in everything just once and things go smoothly with checkout. For this test, I used a fake credit card number: 5555 5555 5555 5555, so it gave me an error message on checkout and said The transaction was incomplete, but it still had my whole order there and all my information that I entered, except the billing country is missing – the drop down is blank. If I choose USA again, all is fine with the order and it records the correct country. If I don’t choose USA again and leave it blank, enter in the same credit card number and hit purchase, it records Guatemala as the billing country.

    The billing country is required on checkout but for some reason it doesn’t seem to notice that it’s missing if you have an issue, try again, and then purchase.

    We rolled back to WPEC 3.8.14, and this seems to fix the billing country issue. However, now we notice it’s not always recording the billing state, it just leaves that empty in some orders, in both the Sales Log and the database.

    I sent a request to Premium Support on this issue, but haven’t heard back from them so I thought I’d try the forums. Anyone have any ideas or things we might try to test? I appreciate the help!

    https://wordpress.org/plugins/wp-e-commerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Did you ever resolve this with 3.8.14.1? I’ve been looking for a solution, can’t seem to find one.

    The problem seems to arise for anyone who comes back to the store and has their info stored, or someone who submits and receives a checkout error. The country dropdown is then empty, but also not validated on submission so it is allowed through. We end up with the wrong country.

    Plugin Author Justin Sainton

    (@justinsainton)

    Hi timstl,

    I think we have this issue sorted out – I was never able to replicate it, but for those that were, a fix we made in the plugin seemed to do the trick.

    If you’re able to update to our 3.8.14.2 branch, do that and let me know if it resolves the issue for you. You can download it here.

    Thanks. I will test it out and get back to you.

    I would say it seems mostly fixed. The biggest issue seems solved now: When you submit a checkout form and it fails (maybe due to missing info somewhere on the form) the Country dropdown does maintain your selection. Previously it was losing that value.

    The only weird thing is that if you deliberately leave the country dropdown unselected but type something in State it allows the form submission even though Country is required. This is not as big of a problem as the original issue, but if nothing else it’s a little odd because the country field is required.

    I made a screenr to better show the behavior: https://www.screenr.com/KVRN

    Would you rather I open an issue on Github for this?

    Thanks,

    Tim

    Plugin Author Justin Sainton

    (@justinsainton)

    Hi Tim!

    A Github issue would be awesome – thanks so much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Billing state/country issue on checkout’ is closed to new replies.