Order entered with invalid address info

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
10 years 1 month ago #174129

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.4
-- PHP version -- : 5.4.31
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : n/a

We've had a strange order come through our cart.

The order was applied the wrong shipping amount. It was applied a US shipping rate (using the manual shipping system) even though the address was an international shipping address. (We have one manual shipping for US, one for 'International' and is set-up properly).

After investigating further, it appears that the problem was somewhere in the address entry system.

The address on the order is:
...
Southampton
New Hampsire
United Kingdom

The problem is that "New Hampsire" is not a valid state in "United Kingdom".

In further testing here we are not able to reproduce this address. Every time we change the country ti UK it automatically changes the state list (and also properly changes the shipping amount).

Can you tell me if you can think of anything that might cause this strange happening?
Is it possible for a user to configure their browser in a way that these updates don't take place (i.e. disabling javascript, etc.)?

This is just a perplexing issue that we'd sure like to try to figure out.

Thanks.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 1 month ago #174161

Hi,

The only thing I can think of would be that this person had his javascript turned off in his browser with the "New Hampsire" state selected and the other country from that state selected and then he changed the country to the UK. Since the javascript was disabled, the state dropdown was not refreshed and he was able to enter his address with a state outside of the country.
HikaShop doesn't have any check on that server-side so that's why it went through.
Then, in your shipping methods, you use the country for the zone restrictions and since his address is in the UK, the domestic shipping method was rightfully selected.
But even if the state would have been refreshed and that his state would be the default one of the UK, he would still have paid for domestic shipping while his address would still have been incorrect. So it doesn't change much.
The only solution to avoid that would be to have an integration with an address checking system but it's not ideal either. Most of them don't work worldwide or can be quite expensive for what they do.

Please Log in or Create an account to join the conversation.

  • Posts: 195
  • Thank you received: 5
  • Hikashop Business
10 years 1 month ago #174296

That's what I was thinking (javascript turned off).

I don't think we want to go to the effort of address verification (at least not for this site).
However, I think we might consider doing some sort of test to determine if javascript is enabled and alert the user if it isn't.

Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum