News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

State not displaying on dropdown selection [Solved]

Started by fenixbarcelona, September 03, 2012, 16:29:59 PM

Previous topic - Next topic

fenixbarcelona

Hello,

I have a problem and none of the solutions found here helped me: when I want to register as a buyer, I can choose the country (spain) from the drop-down menu but after that I can't get the list of states, and I checked jquery, ajax for country/state and changed everything I could found... I even installed VM2 from scratch!!!

The site is www.sidaciberia.com

I'm using Joomla! 2.5.1 and VM 2.0.10.

Thanks in advance.

jjk

Did you set the 'virtuemart_state_id' in VM2 'Configuration' - 'Shopper List' to "Required"?
Also, the States have to be published in the country list of course.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

fenixbarcelona

Yes, by default 'virtuemart_state_id' is Required, and the States are also published for Spain in the country list.

Thank you, if I find a solution I'll post it here.

fenixbarcelona

SOLVED!!!!

It was a template problem with Javascript.

My template ja_purity_ii has an option to "Optimize JS" and that crashed the VirtueMart JS. I changed the option to "NO" and everything is working now!!!

Thank you very much all you.

nickwiebe

Where is the setting found for Optimize JS?  Where can I find it to turn it off?

bytelord

hello,

This is on JA framework T3 .. so you may be use other template framework and you can search on template settings. If you not then maybe your custom template or any plugin or any module loads jquery again or javascript files that conflicts with vm js. You could use firebug to examine your site for js errors.

http://forum.virtuemart.net/index.php?topic=102850.0

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

RevoLion

Well on my site I ran into a very weird issues in this same realm.

www.thehummingbirdstore.com, Joomla 2.5.7 and VM 2.0.12

On the Billing form (Which I am using One Page Checkout) it shows the US states drop down list, but when I click "Add/Edit Shipping Address" form I do not get a drop down list of the US states and I can not figure out how to fix it. Any ideas?

Kindest Regards,
Jeremy

bytelord

#7
Hello,

It seems as a javascript conflict. I couldn't examine your site because there are no prices for anonoymous ... any way ... please try with the following:

Use firebug to examine your site code and styling .. also for checking js conflicts ...
http://forum.virtuemart.net/index.php?topic=102850.0

Javascript conflicts:
http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
http://dev.virtuemart.net/projects/virtuemart/wiki/JavascriptCSS_Template_Overrides_and_Avoiding_Conflicts_between_Libraries

Last, please ask also the OPC vendor because i am not aware of the specific extension.

Similar:
https://forum.virtuemart.net/index.php?topic=107761.5
http://forum.virtuemart.net/index.php?topic=109097.0


Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

RevoLion

Well the billing area shows this in firebug.

<div class="formField" id="virtuemart_state_id_input">
<select class="inputbox multiple" id="virtuemart_state_id" onchange="javascript:op_runSS(this);" size="1" name="virtuemart_state_id" aria-invalid="false">
<option value="1">Alabama</option>
<option value="2">Alaska</option>
<option value="3">Arizona</option>
<option value="4">Arkansas</option>
<option value="5">California</option>
<option value="6">Colorado</option>
<option value="7">Connecticut</option>
<option value="8">Delaware</option>
<option value="9">District Of Columbia</option>
<option value="10">Florida</option>
<option value="11">Georgia</option>
<option value="12">Hawaii</option>
<option value="13">Idaho</option>
<option value="14">Illinois</option>
<option value="15">Indiana</option>
<option value="16">Iowa</option>
<option value="17">Kansas</option>
<option value="18">Kentucky</option>
<option value="19">Louisiana</option>
<option value="20">Maine</option>
<option value="21">Maryland</option>
<option value="22">Massachusetts</option>
<option value="23">Michigan</option>
<option value="24">Minnesota</option>
<option value="25">Mississippi</option>
<option value="26">Missouri</option>
<option value="27">Montana</option>
<option value="28">Nebraska</option>
<option value="29">Nevada</option>
<option value="30">New Hampshire</option>
<option value="31">New Jersey</option>
<option value="32">New Mexico</option>
<option value="33">New York</option>
<option value="34">North Carolina</option>
<option value="35">North Dakota</option>
<option value="36">Ohio</option>
<option value="37">Oklahoma</option>
<option value="38">Oregon</option>
<option value="39">Pennsylvania</option>
<option value="40">Rhode Island</option>
<option value="41">South Carolina</option>
<option value="42">South Dakota</option>
<option value="43">Tennessee</option>
<option value="44">Texas</option>
<option value="45">Utah</option>
<option value="46">Vermont</option>
<option value="47">Virginia</option>
<option value="48">Washington</option>
<option value="49">West Virginia</option>
<option value="50">Wisconsin</option>
<option value="51">Wyoming</option>
</select>
</div>


When I go to Firegub to examin it in the "Add/Edit Address" in shipping form this is all I see.
<div class="formField" id="shipto_virtuemart_state_id_input">
<select class="inputbox multiple" id="shipto_virtuemart_state_id" onchange="javascript:op_runSS(this);" size="1" name="shipto_virtuemart_state_id" ="" value="" aria-invalid="false">-- Select --</select>


Does this by any chance sow you anything or give a clue?

bytelord

Did you check for js conflicts? ...

As i see this is an OPC issue ... onchange="javascript:op_runSS(this)

So please ask the also.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

ViceMart

In VM2 I had this problem, the States were not showing in the dropdown, it only had --Select--.

I went to VM>Configuration and clicked the Checkout tab and checked the box for Language Javascript Fix.

Now the states are appearing in the dropdown box in the cart. The first time the Country was selected it didn't work, but after selecting the Country a second time, now the States appear in the dropdown.

Hope this works for you.

JMB Designs

MY SOLUTION: I did not have JavaScript conflict that caused my US states not to show, but an SSL conflict. 


Refresh page. PROBLEM SOLVED. US States show in drop down list.

iscomputerman

I seem to be having the shipping states not appear either.  Firebug doesn't show errors, I don't have a CSS looking to fonts.googleapis issue either.  I select country of United States and the States box just doesn't do anything.  The "billing" side works fine, states drop down correctly populates if choosing the country manually (not if you set it as default).

Any other recent scenarios to research to get shipping state to populate?


Joomla 3.4.0  VM 3.0.12


GJC Web Design

so on Bill to you have and on Ship to you don't?

live url?

you should be on J3.4.5
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

iscomputerman

#14
I've upgraded to J3.4.5, no change in State drop down under shipping area.   Billing area still works fine.

Live url:  https://www.sausagencheese.com


J3.4.5   VM3.0.12   php native 5.4

UDPATE: I activated the Use jQuery chosen for dropdowns in FE under configuration and now I have duplicate country and state boxes both in shipping and billing.  While this is a nuisance, it did solve my problem of not being able to choose states in shipping.  Now, how do I get rid of one set of drop down boxes?