[Skip to main content](#vessel-content)

#   Checkout, address block fill in country, wrong reaction on enter

##

- **[joris85](/forum/user/28344-joris85 "View joris85's Profile")**
- [![joris85's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28344.jpg)](/forum/user/28344-joris85 "View joris85's Profile") Topic Author
- [ Offline](/forum/user/28344-joris85)

Less More

- Posts: 190
- Thank you received: 9
-
-

7 years 10 months ago [\#302980](#302980) by [joris85](/forum/user/28344-joris85 "View joris85's Profile")  *[Checkout, address block fill in country, wrong reaction on enter](/forum/27-checkout/896740-checkout-address-block-fill-in-country-wrong-reaction-on-enter#302980 "-- HikaShop version -- : 4.02 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2  Hi guys,  When I have a checkout and I want to choose the country I have a chosen or select. I search with keyboard and get results. I select a country with arrows and push enter. Instead of selecting a country it is saving my address without updating the country.  This is not expected and kinda buggy :-)  Also, I see that updating the Tax is not always happening while changing the country. Even though all taxes are working most of the times. Always it is updated after coupon apply but only randomly it is updated after saving the address.  I hope you can help me out here :-)")* was created by *[joris85](/forum/user/28344-joris85 "View joris85's Profile")*

-- HikaShop version -- : 4.02
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.2

Hi guys,

When I have a checkout and I want to choose the country I have a chosen or select.
I search with keyboard and get results.
I select a country with arrows and push enter.
Instead of selecting a country it is saving my address without updating the country.

This is not expected and kinda buggy ![:-)](/media/kunena/emoticons/3.png ":-)")

Also, I see that updating the Tax is not always happening while changing the country.
Even though all taxes are working most of the times.
Always it is updated after coupon apply but only randomly it is updated after saving the address.

I hope you can help me out here ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Njc0MC1jaGVja291dC1hZGRyZXNzLWJsb2NrLWZpbGwtaW4tY291bnRyeS13cm9uZy1yZWFjdGlvbi1vbi1lbnRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

7 years 10 months ago [\#303011](#303011) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout, address block fill in country, wrong reaction on enter](/forum/27-checkout/896740-checkout-address-block-fill-in-country-wrong-reaction-on-enter#303011 "-- HikaShop version -- : 4.02 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2  Hi guys,  When I have a checkout and I want to choose the country I have a chosen or select. I search with keyboard and get results. I select a country with arrows and push enter. Instead of selecting a country it is saving my address without updating the country.  This is not expected and kinda buggy :-)  Also, I see that updating the Tax is not always happening while changing the country. Even though all taxes are working most of the times. Always it is updated after coupon apply but only randomly it is updated after saving the address.  I hope you can help me out here :-)")*

Hi,

1. I checked on your website checkout but I don't get the problem. I can change the country selected, press enter, and it selects the country and refreshes the state field but it doesn't submit the address.
Do you mean that this only happens when you have the "use chosen library" setting activated ? Because it seems that you have it turned off from what I can see on your website.

2. I also tried to change the address country several times on your checkout and each time the tax was refreshed with the corresponding tax. So again, I'm not able to reproduce the problem. Does it happen with a specific browser ? Or with specific countries ?
If you check the console of your browser while you reproduce the issue, do you see any javascript error ? What do you get in the network section of the developer tool of your browser when you reproduce the issue ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Njc0MC1jaGVja291dC1hZGRyZXNzLWJsb2NrLWZpbGwtaW4tY291bnRyeS13cm9uZy1yZWFjdGlvbi1vbi1lbnRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joris85](/forum/user/28344-joris85 "View joris85's Profile")**
- [![joris85's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28344.jpg)](/forum/user/28344-joris85 "View joris85's Profile") Topic Author
- [ Offline](/forum/user/28344-joris85)

Less More

- Posts: 190
- Thank you received: 9
-
-

7 years 10 months ago [\#303012](#303012) by [joris85](/forum/user/28344-joris85 "View joris85's Profile")  Replied by *[joris85](/forum/user/28344-joris85 "View joris85's Profile")* on topic *[Checkout, address block fill in country, wrong reaction on enter](/forum/27-checkout/896740-checkout-address-block-fill-in-country-wrong-reaction-on-enter#303012 "-- HikaShop version -- : 4.02 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2  Hi guys,  When I have a checkout and I want to choose the country I have a chosen or select. I search with keyboard and get results. I select a country with arrows and push enter. Instead of selecting a country it is saving my address without updating the country.  This is not expected and kinda buggy :-)  Also, I see that updating the Tax is not always happening while changing the country. Even though all taxes are working most of the times. Always it is updated after coupon apply but only randomly it is updated after saving the address.  I hope you can help me out here :-)")*

Hi Nicolas,

Thanks for checking this out.

1. I left it on not chosen library and like you said it is working without the chosen library but not working with the chosen library active.
You can see that right now.

2. If it is ok with you I will leave it like this and maybe it was some caching here.
I will see what happens when customers buy it ![:-)](/media/kunena/emoticons/3.png ":-)")

Great workday for you guys ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Njc0MC1jaGVja291dC1hZGRyZXNzLWJsb2NrLWZpbGwtaW4tY291bnRyeS13cm9uZy1yZWFjdGlvbi1vbi1lbnRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

7 years 10 months ago [\#303017](#303017) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout, address block fill in country, wrong reaction on enter](/forum/27-checkout/896740-checkout-address-block-fill-in-country-wrong-reaction-on-enter#303017 "-- HikaShop version -- : 4.02 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2  Hi guys,  When I have a checkout and I want to choose the country I have a chosen or select. I search with keyboard and get results. I select a country with arrows and push enter. Instead of selecting a country it is saving my address without updating the country.  This is not expected and kinda buggy :-)  Also, I see that updating the Tax is not always happening while changing the country. Even though all taxes are working most of the times. Always it is updated after coupon apply but only randomly it is updated after saving the address.  I hope you can help me out here :-)")*

Hi,

1. I see the problem. Try adding the code: Code:

if(els[idx].parentElement.className == 'chzn-search') continue;

before the line: Code:

els[idx].addEventListener('keydown', function(e) {

in the file media/com_hikashop/js/checkout.js and clear the cache of your browser.
That should hopefully help with chosen dropdowns.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Njc0MC1jaGVja291dC1hZGRyZXNzLWJsb2NrLWZpbGwtaW4tY291bnRyeS13cm9uZy1yZWFjdGlvbi1vbi1lbnRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
