Author Topic: State menu empty after country selection  (Read 410 times)

danielesfera

  • Beginner
  • *
  • Posts: 2
  • A beginner
State menu empty after country selection
« on: October 26, 2020, 16:47:17 pm »
Hi,

I have a strange problem with the states menu in the registration form.
Some customers, few customers, after selecting the country see the menu of the states empty.
I can't understand why, it seems that it is totally random.
The same customers who report this problem are not even able to add products to the cart.
This problem appeared suddenly a few weeks ago, without any changes on the server or updates to joomla or virtuemart.
Website url: https://www.pizzardieditore.com/shop/index.php?option=com_virtuemart&view=user

Daniele


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10026
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: State menu empty after country selection
« Reply #1 on: October 26, 2020, 19:56:51 pm »
tested in FF, Chrome and Edge ,,  the provinces are populated

why not make the state non compulsory so this doesn't block the client if some have problems?

with the CAP and city the address is complete
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

danielesfera

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: State menu empty after country selection
« Reply #2 on: October 27, 2020, 17:32:25 pm »
I finally found a solution.

The problem was related to an "header CORS "Access-Control-Allow-Origin" error.

For a strange reason the WAF no longer redirected the domain if typed without www., and for customers who accessed the site https://pizzardieditore.com the error did not allow loading the list of states

Bye

Daniele

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10026
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: State menu empty after country selection
« Reply #3 on: October 27, 2020, 19:45:24 pm »
then you should force either with or without www

.htaccess

RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation