State Dropdown does not work for US States

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 1 month ago #99229

For some reason during the checkout screen, the state drop-down will not open when selecting United States as the country. I've checked the Zones list, and all states as well as the country listing for USA are enabled. How can I fix this...please help...thanks!

This is on Hikashop 2.1.2 essentials.

Attachments:
Last edit: 11 years 1 month ago by Dragon41673.

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

  • Posts: 26032
  • Thank you received: 4006
  • MODERATOR
11 years 1 month ago #99238

Hi,

If you change the country to another country and then to "united states", do you have a drop-down ?
Is "united states" your default country ?

You could have a wrong default value in your "country" address custom field.
By editing it and saving it, it would save correctly the default country and the state drop-down would load the right content.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 1 month ago #99247

While I look for it right now...could you point me in the right direction for default country?

I did try removing everything from the "zones" section of Hikashop, then only enabling the United Stated as the country. That didn't work. So I enabled all 50 states, and again...that didn't work.

Thanks
Derek

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 1 month ago #99249

Ok...I found what you asked me to...and they are already set as default. I've attached some screen shots I think may help...

I've enabled & disabled all the items in the images...and still my states do not show up.

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

  • Posts: 26032
  • Thank you received: 4006
  • MODERATOR
11 years 1 month ago #99252

Hi,

Did you re-save the country custom field ?

I tried to make an "hikashop" account but after the activation the account is still blocked.
So I can't test it directly in your website.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 1 month ago #99254

Hello,

I think I re-saved it...but I will do that again right now.

I've activated your profile so you can test it out directly on the site.

Thanks

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 1 month ago #99255

Ok yes, I had already re-saved them.

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

  • Posts: 26032
  • Thank you received: 4006
  • MODERATOR
11 years 1 month ago #99266

Hi,

Got it !

Your website running on HTTPS but the webcall which retreive the content of the dropdown is done on HTTP (without SSL).
So there is a restriction made by the browser: "Origin https://******* is not allowed by Access-Control-Allow-Origin.".

I think it's a problem with Joomla "JURI::base()" function which returns a http and not a https url.
I have open a bug report on it in order to reproduce it on our local websites.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 1 month ago #99268

Ok...so that means for now, I have to wait for you guys to implement a fix? Right?

If so...if I renamed the "city" section to "city & state" and disabled the state listing on the backend...will this allow a customer to enter the necessary info so I can get the order?

Thanks

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

  • Posts: 26032
  • Thank you received: 4006
  • MODERATOR
11 years 1 month ago #99397

Hi,

The problem is that, your joomla configuration have a "live url" which does not use "https" but "http".
That's why "JURI::base()" returns a http url and not a https one.

We made a Joomla fix in HikaShop in order to prevent such thing.
In the joomla way, your configuration is wrong but we think that it should be right.

You can edit the file "administrator/com_hikashop/classes/field.php" and replace

$baseUrl=JURI::base().'index.php?option=com_hikashop&ctrl='.$url.'&tmpl=component';
if(strpos($baseUrl,'?')!==false){
	$baseUrl.='&';
}else{
	$baseUrl.='?';
}
$fields[$namekey]->field_url=$baseUrl;
By this:
$baseUrl = JURI::base().'index.php?option=com_hikashop&ctrl='.$url.'&tmpl=component';
$currentUrl = strtolower(hikashop_currentUrl());
if(substr($currentUrl, 0, 8) == 'https://') {
	$domain = substr($currentUrl, 0, strpos($currentUrl, '/', 9));
} else {
	$domain = substr($currentUrl, 0, strpos($currentUrl, '/', 8));
}
if(substr($baseUrl, 0, 8) == 'https://') {
	$baseUrl = $domain . substr($baseUrl, strpos($baseUrl, '/', 9));
} else {
	$baseUrl = $domain . substr($baseUrl, strpos($baseUrl, '/', 8));
}
$fields[$namekey]->field_url = $baseUrl . '&';
It would be include in the next HikaShop release.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 1 month ago #99540

Awesome...thanks. I think that's a little above my capabilities, but I will look in to it to see if I can do it myself, otherwise I will have to wait for the next release.

Thank you very much for all your help!

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 2 weeks ago #102207

Jerome...I'm sorry to ask, but I cannot find where to put that code to fix the state drop down. Can you please tell me where to go?

Thanks

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

  • Posts: 26032
  • Thank you received: 4006
  • MODERATOR
11 years 2 weeks ago #102209

Hi,

Now the best solution is to update HikaShop with the latest version: You have to re-download HikaShop.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 2 weeks ago #102210

Jerome, I did a check before I posted, and per my admin backend, it states I have the current version of 2.1.2. Is this not the current version?

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

  • Posts: 81677
  • Thank you received: 13102
  • MODERATOR
11 years 2 weeks ago #102214

The latest version is the 2.1.3 that we released yesterday. The automatic update is not yet available.
You can download it manually on our website and install it on yours via the joomla installer in order to do the update.

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 2 weeks ago #102215

Ah ok, great! Thank you very much.

One more question...today I had a sale in my same State. The tax category I have setup for Wisconsin, did not charge my customer tax on their purchase. If I have my taxes setup properly, will this update to the state drop down also fix the tax issue?

Thank you both very much for all the help!

Last edit: 11 years 2 weeks ago by Dragon41673.

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 2 weeks ago #102216

Scratch that question...it fixed BOTH the state drop down & tax issue!

Ugh...you guys have NO idea how hard this has been for me to learn! Thank you VERY VERY much for EVERYTHING!

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 2 weeks ago #102218

Ok...I've done something wrong, but I don't know how to correct it. I tried to make an order for myself to make sure it would charge tax all the way to the PayPal screen. My tax rate would be 5.5%...so we will use that in the example below.

Problem #1...With the item in my cart at $10.40, my shipping address correctly entered along with Local Pickup selected for shipping, tax is coming out to $0.54 when it should be $0.58. (Image #1)

Problem #2...When I go to pay through PayPal, it is showing the item at $9.86...not $10.40, but it did transfer over the (incorrect) tax rate of $0.54.

How do I fix both. If you want me to start a new thread...I will.

Thanks

Attachments:
Last edit: 11 years 2 weeks ago by Dragon41673.

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

  • Posts: 713
  • Thank you received: 37
  • Hikashop Business
11 years 2 weeks ago #102241

Ok...I figured out Problem #2. It was crediting the tax as it was set for local pickup, so after I made that not an option, tax was being calculated properly.

I still need help on #1 though.

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

  • Posts: 26032
  • Thank you received: 4006
  • MODERATOR
11 years 1 week ago #102302

Hi,

We will need more information about your tax configuration.
Would it be possible to create a new thread for this problem which is now different than the original one (so than the topic of this thread).
So people with the same kind of problem will be able to find the thread and the answer with a little search :)

Thanks


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum