- Posts: 14
- Thank you received: 0
add billing address on checkout
- johnpeter001
-
Topic Author
- Offline
image missing http://i47.tinypic.com/2n890qx.png
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.
image missing http://i47.tinypic.com/o93ern.png
Please Log in or Create an account to join the conversation.
- johnpeter001
-
Topic Author
- Offline
- Posts: 14
- Thank you received: 0
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.
Please Log in or Create an account to join the conversation.
- johnpeter001
-
Topic Author
- Offline
- Posts: 14
- Thank you received: 0
Please Log in or Create an account to join the conversation.
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.
- johnpeter001
-
Topic Author
- Offline
- Posts: 14
- Thank you received: 0
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.
Please Log in or Create an account to join the conversation.
- johnpeter001
-
Topic Author
- Offline
- Posts: 14
- Thank you received: 0
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.