News:

Looking for documentation? Take a look on our wiki

Main Menu

State menu empty after country selection

Started by danielesfera, October 26, 2020, 16:47:17 PM

Previous topic - Next topic

danielesfera

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

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

danielesfera

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

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation