News:

Support the VirtueMart project and become a member

Main Menu

Not able to select state/province

Started by redneckws, October 18, 2016, 17:11:16 PM

Previous topic - Next topic

redneckws

Since updating to Joomla 3.6.2 I have been having issues with registration.

I'm using VirtueMart 3.0.18, the registration is fine but when I go to add a mailing address and such it won't let me select a Province or State. The Province's and State's are all published and worked perfectly fine before the update.

Is there anything we can do to fix this issue?

GJC Web Design

it is always JS related.. without a live url no one can help you
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


VMTemplates.net

Hi,

it's chosen jQuery script issue. You can try following:

1. Try to delete override for this view:
/templates/TEMPLATE_NAME/html/com_virtuemart/user/edit_address.php
or simply rename this file to for example:
/templates/TEMPLATE_NAME/html/com_virtuemart/user/OLD_edit_address.php

2. Add following script somewhere in head in your ./template/TEMPLATE_NAME/index.php file:

<script type="text/javascript">//<![CDATA[
jQuery(document).ready( function() {
jQuery("#shipto_virtuemart_country_id_field").trigger("chosen:updated");
}); //]]>
</script>

3. Or try to destroy chosen script for the state field and add following script somewhere in head in your ./template/TEMPLATE_NAME/index.php file:

<script type="text/javascript">//<![CDATA[
jQuery(document).ready( function() {
jQuery("#shipto_virtuemart_country_id_field").chosen("destroy");
}); //]]>
</script>

Otherwise you may need to contact template provider

Thanks,
Jason.
We develop VirtueMart templates since 2008
https://www.virtuemarttemplates.net/
Join the VirtueMart Templates Club today and get an access to over 60 VirtueMart templates
https://www.virtuemarttemplates.net/template-club.html
If you need a custom VirtueMart Template design please visit https://www.virtuemarttemplates.net/custom-virtuemart-template-design.html
Visit our new shop https://demo.virtuemarttemplates.net/
Join the VirtueMart Templates Club, purchase the template or order one of our services like Hosting, Website Maintenance, Security and Optimization, Template Customization and more

redneckws

I do not have index.php in that folder, I have index.html. Would this make a difference? It's a template created on Artisteer, would it help recreating it?

VMTemplates.net

Hi,

unfortunately, I don't know if recreating the template may help. I don't know how the templates from Artisteer works and what kind of changes to an original VirtueMart and Joomla HTML overrides they did to get the visual builder to work with it. The only I can recommend you is to try to contact Artisteer support and ask for the help.

Thanks,
Jason.
We develop VirtueMart templates since 2008
https://www.virtuemarttemplates.net/
Join the VirtueMart Templates Club today and get an access to over 60 VirtueMart templates
https://www.virtuemarttemplates.net/template-club.html
If you need a custom VirtueMart Template design please visit https://www.virtuemarttemplates.net/custom-virtuemart-template-design.html
Visit our new shop https://demo.virtuemarttemplates.net/
Join the VirtueMart Templates Club, purchase the template or order one of our services like Hosting, Website Maintenance, Security and Optimization, Template Customization and more

jenkinhill

With artisteer templates it is usually difficult to work out what is causing problems, as the crapisteer system does not generate standard Joomla code.

Earlier GJC said "it is always JS related" and indeed it is here. The console error is:
TypeError: jQuery(...).chosen is not a function
http://www.karamat.com/shop
Line 76

You are loading an old version of jQuery and not loading any of the VirtueMart scripts. You also have jQueryEasy installed for some reason - a misconfiguration of this plugin can also cause chosen.js issues.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Jumbo!

1. Disable jQueryEasy plugin.
2. Enable "Use jQuery chosen for dropdowns in FE" in VirtueMart configuration.

Now check again.

redneckws

I have disabled jQuery Easy and set the VM confirguration to "use jQuery chosen for dropdowns in FE". Still no change.

Jumbo!

You have also disabled "Using the Script ajax Countries/Regions" option in VM Configuration. You need to enable the same.