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

Virtuemart State / Province / Region not showing in dropdown

Started by caravellifb, September 21, 2016, 19:13:43 PM

Previous topic - Next topic

caravellifb

Hi, I have a new problem (I am a newbye)
Like an old discussion my State/Province/Region for Italy don't work.
The website is www.telecomandiuniversali.it, if I try to select not work  :(
I see the code, is: <select name="virtuemart_state_id" class="vm-chzn-select" id="virtuemart_state_id" onchange="return ProOPC.updateBTaddress(this);" style="width: 279px;">
<option value="">Scegli</option>
</select>


And there is not the list of Italian City.
The code must be
<select name="virtuemart_state_id" class="vm-chzn-select" id="virtuemart_state_id" onchange="return ProOPC.updateBTaddress(this);" style="width: 279px;">
<option value="">Scegli</option>
<optgroup label="Italia" id="group105"><option value="214">Agrigento</option><option value="215">Alessandria</option><option value="216">Ancona</option><option value="217">Aosta</option><option value="218">Arezzo</option><option value="219">Ascoli Piceno</option><option value="220">Asti</option><option value="221">Avellino</option><option value="222">Bari</option><option value="223">Belluno</option><option value="224">Benevento</option><option value="225">Bergamo</option><option value="226">Biella</option><option value="227">Bologna</option><option value="228">Bolzano</option><option value="229">Brescia</option><option value="230">Brindisi</option><option value="231">Cagliari</option><option value="232">Caltanissetta</option><option value="233">Campobasso</option><option value="234">Carbonia-Iglesias</option><option value="235">Caserta</option><option value="236">Catania</option><option value="237">Catanzaro</option><option value="238">Chieti</option><option value="239">Como</option><option value="240">Cosenza</option><option value="241">Cremona</option><option value="242">Crotone</option><option value="243">Cuneo</option><option value="244">Enna</option><option value="730">Fermo</option><option value="245">Ferrara</option><option value="246">Firenze</option><option value="247">Foggia</option><option value="248">Forli-Cesena</option><option value="249">Frosinone</option><option value="250">Genova</option><option value="251">Gorizia</option><option value="252">Grosseto</option><option value="253">Imperia</option><option value="254">Isernia</option><option value="255">L'Aquila</option><option value="256">La Spezia</option><option value="257">Latina</option><option value="258">Lecce</option><option value="259">Lecco</option><option value="260">Livorno</option><option value="261">Lodi</option><option value="262">Lucca</option><option value="263">Macerata</option><option value="264">Mantova</option><option value="265">Massa-Carrara</option><option value="266">Matera</option><option value="267">Medio Campidano</option><option value="268">Messina</option><option value="269">Milano</option><option value="270">Modena</option><option value="271">Napoli</option><option value="272">Novara</option><option value="273">Nuoro</option><option value="274">Ogliastra</option><option value="275">Olbia-Tempio</option><option value="276">Oristano</option><option value="277">Padova</option><option value="278">Palermo</option><option value="279">Parma</option><option value="280">Pavia</option><option value="281">Perugia</option><option value="282">Pesaro e Urbino</option><option value="283">Pescara</option><option value="284">Piacenza</option><option value="285">Pisa</option><option value="286">Pistoia</option><option value="287">Pordenone</option><option value="288">Potenza</option><option value="289">Prato</option><option value="290">Ragusa</option><option value="291">Ravenna</option><option value="292">Reggio Calabria</option><option value="293">Reggio Emilia</option><option value="294">Rieti</option><option value="295">Rimini</option><option value="296">Roma</option><option value="297">Rovigo</option><option value="298">Salerno</option><option value="299">Sassari</option><option value="300">Savona</option><option value="301">Siena</option><option value="302">Siracusa</option><option value="303">Sondrio</option><option value="304">Taranto</option><option value="305">Teramo</option><option value="306">Terni</option><option value="307">Torino</option><option value="308">Trapani</option><option value="309">Trento</option><option value="310">Treviso</option><option value="311">Trieste</option><option value="312">Udine</option><option value="313">Varese</option><option value="314">Venezia</option><option value="315">Verbano Cusio Ossola</option><option value="316">Vercelli</option><option value="317" selected="selected">Verona</option><option value="318">Vibo Valenzia</option><option value="319">Vicenza</option><option value="320">Viterbo</option></optgroup>
</select>


For work; infact don't work!
I know the esact code because in an old version of website (I don't build the site) I found it with firebug
How I put the optgroup in Virtuemart?

Quote from: jenkinhill on December 28, 2012, 12:15:55 PM
Check for JavaScript conflicts.  http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery

I try this option, don't work.  >:(
Can you help me? Thank you  :)

Daxiiy7


GJC Web Design

Your using the 3rd party VP OPC.. have u tried with the standard Protostar?

I see no ajax call at all to retrieve the state list when the country is changed

You are loading a huge amount of JS...
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