add billing address on checkout

  • Posts: 14
  • Thank you received: 0
11 years 7 months ago #95362

Dear Hikashop, when I went to check out, and try to add a new billing address, the state field is gone, it doesn't have a dropdown list of states for me to choose(show as below):



But if I logout and went to checkout as a new user, the register form does have state field and a dropdown list for me to choose, so I am not sure what is causing this issue, please help, thank you.

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

  • Posts: 14
  • Thank you received: 0
11 years 7 months ago #95369

when I use console to see what is going on, I saw this error message:

XMLHttpRequest cannot load "website url"/index.php?option=com_hikashop&ctrl=checkout&task=state…e&field_namekey=address_state&namekey=country_United_States_of_America_223. Origin "website url" is not allowed by Access-Control-Allow-Origin.


But don't know how to fix it, thank you.

Last edit: 11 years 7 months ago by johnpeter001.

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

  • Posts: 14
  • Thank you received: 0
11 years 7 months ago #95372

Hmm, so weird, without doing anything, Chrome can see the state field now, but Firefox and IE still can't see it, earlier, all 3 browsers can't see the state field.

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

  • Posts: 82785
  • Thank you received: 13353
  • MODERATOR
11 years 7 months ago #95505

Hi,

That's because you're accessing your website with two different doamins and the AJAX request to load the dropdown of states always use the same one. So in some cases, the domain of the AJAX request is refused by your browser when it is different than the domain of the current page.

You should not do that. All the pages should be accessed with the same domain. That will avoid that error and also improve your SEO by avoiding duplicate content.

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

  • Posts: 14
  • Thank you received: 0
11 years 7 months ago #95625

nicolas wrote: Hi,

That's because you're accessing your website with two different doamins and the AJAX request to load the dropdown of states always use the same one. So in some cases, the domain of the AJAX request is refused by your browser when it is different than the domain of the current page.

You should not do that. All the pages should be accessed with the same domain. That will avoid that error and also improve your SEO by avoiding duplicate content.


Hi, Nicolas, thank you very much, the weird thing is from my understanding, we only have one domain for this website, could it be the problem from the hosting company? And how do I found out which are the two domains associate with the website if that is the causing of the problem, thank you very much.

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

  • Posts: 82785
  • Thank you received: 13353
  • MODERATOR
11 years 7 months ago #95662

You're probably accessing your website with both www.yourwebsite.com and yourwebsite.com which are considered as two different domains by the browsers. You should add a htaccess rule to always redirect the requests to one of the domains to the other one.

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

  • Posts: 14
  • Thank you received: 0
11 years 7 months ago #95680

nicolas wrote: You're probably accessing your website with both www.yourwebsite.com and yourwebsite.com which are considered as two different domains by the browsers. You should add a htaccess rule to always redirect the requests to one of the domains to the other one.


I see, thank you very much Nicolas, that should be the reason, thanks again for your quick and efficient answers as always. :)

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

Time to create page: 0.065 seconds
Powered by Kunena Forum