VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: dalewyngaard on March 14, 2017, 13:14:19 PM

Title: Billing Information no States are displayed - error
Post by: dalewyngaard on March 14, 2017, 13:14:19 PM
Hi Forum,

VirtueMart 3.0.14 Joomla! 3.5.1

I have read through the forums and nothing that I have come across seems to be working for me?

I have an OPC, and the Billing info just won't display the States once the country is selected.

All countries have states listed on the backend. The shipping address shows the states but the billing address does not display the states.

I have tried toggling the Ajax OPC, as other forums have suggested but that does not work. I have tried updating the plugins as well, but I keep getting an error message.

Link to the website below:
http://www.swissbody-pilates-academy.com/

This is the error message I keep receiving:
Missing value for State / Province / Region

I have no idea what else to do, and my client is losing sales the longer this continues.

Please assist if you can.

Kind regards,
Dale
Title: Re: Billing Information no States are displayed - error
Post by: jenkinhill on March 14, 2017, 13:26:00 PM
Quote from: dalewyngaard on March 14, 2017, 13:14:19 PM
VirtueMart 3.0.14 Joomla! 3.5.1

Did you miss the vital security releases?
https://www.joomla.org/announcements/release-news/5678-joomla-3-6-4-released.html
https://www.joomla.org/announcements/release-news/5693-joomla-3-6-5-released.html
http://forum.virtuemart.net/index.php?topic=118683.0

Updating your VM version to current may solve your issue. It will not be long before VM3.0.20 is released.  Test all updates on a backup copy of the live site.
Title: Re: Billing Information no States are displayed - error
Post by: dalewyngaard on March 14, 2017, 16:11:23 PM
Hi Jenkin,

Thanks for your reply, so once I update my Joomla version, then I will be able to update my VM version?

Will updating my Joomla version affect any of my templates/layouts?

Kind regards,
Dale
Title: Re: Billing Information no States are displayed - error
Post by: jenkinhill on March 14, 2017, 16:32:30 PM
Update Joomla first - that is critical! You should also check if your site has already been hacked, for example look for new unknown admins registered on the site.

Normally updating Joomla will not break a template, but updating VM may do so, which is why you should never update a live site withour first testing on a backup. With the very latest release some commercial templates may need editing, most of the issues are listed in http://forum.virtuemart.net/index.php?topic=136826.msg478498#msg478498
Title: Re: Billing Information no States are displayed - error
Post by: dalewyngaard on March 20, 2017, 13:54:50 PM
Hi Jenkinhill,

Just to add to my previous post, I have updated Joomla and Virtuemart successfully, but I still do not see the States appear under the Billing Information.
http://swissbody-pilates-academy.com/en/cart.html

What else could it possibly be? Or is there a new option to turn it on since the update?

Please assist if you can.

Kind regards,
Dale
Title: Re: Billing Information no States are displayed - error
Post by: dalewyngaard on March 20, 2017, 14:19:03 PM
Hi Forum,

Please help, I have no idea what else to do to fix this error on my Billing Information: Missing value for State / Province / Region.

I have updated Joomla and I have updated Virtuemart, but the Shipping information still only shows the State / Province / Region.

How do I fix the Billing Information to display State / Province / Region.

My Countries have States in the administrator backend, I just don't know what I'm missing.

I have seen the other forums talking about a JS conflict, but I can't seem to find what script I need to add to try the no conflict.

Please help, the client is currently losing sales.

Kind regards,
Dale
Title: Re: Billing Information no States are displayed - error
Post by: jenkinhill on March 20, 2017, 15:54:49 PM
It appears to be a problem with your template override. If I force that page to use the default VM templates then the Sataes field is displyed.

See http://swissbody-pilates-academy.com/en/component/virtuemart/user/editaddresscartBT.html?Itemid=282?tmpl=component&template=protostar
Title: Re: Billing Information no States are displayed - error
Post by: dalewyngaard on March 20, 2017, 16:27:20 PM
Hi Jenkinhill,

Thanks for your response once again, I see what you mean yes, I have changed templates and I see the error my side as well.

How could I override it though? I only use one template, and it was an updated version of Protostar, so it should be working.

What should I override to fix it?

Kind regards,
Dale
Title: Re: Billing Information no States are displayed - error
Post by: dalewyngaard on March 20, 2017, 16:36:31 PM
Hi Jenkenhill,

Please find attached, the template of my website.

I've removed some of the head tag content and then I sort of see the States field but then it does not function as it should.

Please let me know if you can assist.

Kind regards,
Dale
Title: Re: Billing Information no States are displayed - error
Post by: jenkinhill on March 20, 2017, 16:39:40 PM
Look for template/joomlatemplate/html/com_virtuemart/ and if present rename it so that you use only VM default templates.

I just checked and the code to display the state field is present in your own template display, but not showing - so check your css, too.
Title: Re: Billing Information no States are displayed - error
Post by: dalewyngaard on March 20, 2017, 16:53:15 PM
Hi Jenkenhill,

Solved!

Thank you so much, it was used by another class to display none for another form!!!

Sorry for all your trouble, I really appreciate your hard working ethic.

Thanks again.

Kind regards,
Dale
Title: Re: Billing Information no States are displayed - error
Post by: dslove on July 05, 2017, 10:41:55 AM
Hi, maybe this comes a little late but it happened to me & I'd like to share how I solved this.

Setup:

Tried different stuff, nothing really helped. This seemed to do the trick though: Inside "Configuration", I deactivated the "Use jQuery chosen for dropdowns in FE" setting (please see attached file).

Hope this helps :)
Title: Re: Billing Information no States are displayed - error
Post by: joebird10 on August 04, 2017, 21:46:57 PM
After all the work with the store, a known error related to populating the state code, which is key to sales tax calculation with the product partner avatax,  has me stumped, and completely unable to finish testing a site that is 99% complete. 
Title: Re: Billing Information no States are displayed - error
Post by: dslove on August 08, 2017, 10:08:19 AM
Hi Joe,

Can you give us more info on your issue? Joomla - VM versions? Template? Custom overrides?
Did you try changing the setting I suggested above?
Title: Re: Billing Information no States are displayed - error
Post by: panoss on January 06, 2018, 13:23:50 PM
I have the same problem:
- I choose country (at Shop->Shopper Information) from the drop down list
- but the list 'State / Province / Region' remains empty, while it should be populated by States, Provinces or Regions.
- In Firebug's output (console) I get: 'empty string passed at getElementById().'
I tried the above mentioned solution ( I deactivated the "Use jQuery chosen for dropdowns in FE" setting) but it's not working.

So I can't save the Shopper 's Informations!

Any suggestion?
Title: Re: Billing Information no States are displayed - error
Post by: dslove on January 06, 2018, 15:19:25 PM
Hi panoss,

Can you please share some information about your setup, e.g. as per my post above?

Best regards,
Alex
Title: Re: Billing Information no States are displayed - error
Post by: panoss on January 06, 2018, 15:58:01 PM
Hi dslove. My setup is:
-Joomla 3.8.0
-Virtuemart 3.2.4
-Template protostar with some overrides (I disabled overrides, to see if this is the problem, renaming my folder from: \templates\protostar\html\com_virtuemart  to: \templates\protostar\html\com_virtuemart_disabled, but no success)

Title: Re: Billing Information no States are displayed - error
Post by: dslove on January 06, 2018, 19:40:31 PM
Did you try a) disabling website cache and b) emptying browser cache after disabling overrides?
Title: Re: Billing Information no States are displayed - error
Post by: dslove on January 06, 2018, 19:42:56 PM
Also, since disabling "Use jQuery chosen for dropdowns in FE" didn't make a difference, I recommend reactivating this setting.
Title: Re: Billing Information no States are displayed - error
Post by: jjk on January 06, 2018, 20:13:31 PM
Quote from: panoss on January 06, 2018, 13:23:50 PM
Any suggestion?
1. Did you search for your issue in the forum? There are several possible reasons, which might have been answered already in the past.
2. Update Joomla and VM.
3. Check/update your overrides.
4. Uncheck the 'required' option of virtuemart_state_id in the Shopper Field list.
5. Are the states of your country published? Normally you need those only if the state/province/region is mandatory in the postal address, like in the USA for example.
Title: Re: Billing Information no States are displayed - error
Post by: panoss on January 07, 2018, 14:06:51 PM
Quote from: dslove on January 06, 2018, 19:40:31 PM
Did you try a) disabling website cache and b) emptying browser cache after disabling overrides?
1. I renamed folder to: com_virtuemart_disabled
2. In Joomla 's backend: System->Clear Cache->Delete All
3. I emptied browser 's cache.
4. Reactivated "Use jQuery chosen for dropdowns in FE".
5. I tried a few countries in Shopper Information ->Bill to Information -> Country, but nothing,
The list 'State / Province / Region' remains empty.


Quote from: jjk on January 06, 2018, 20:13:31 PM
1. Did you search for your issue in the forum? There are several possible reasons, which might have been answered already in the past.
2. Update Joomla and VM.
3. Check/update your overrides.
4. Uncheck the 'required' option of virtuemart_state_id in the Shopper Field list.
5. Are the states of your country published? Normally you need those only if the state/province/region is mandatory in the postal address, like in the USA for example.

I did search in the forum and I think I tried some of the things suggested in other topics (I m not quite sure as I tried quite a few things).

I don't want to update for the case that something might go wrong (very often updates cause a lot of new problems) and my site is HUGE and my database is HUGE, too many products with too many photos. It will take me LOOOOOONG time to backup and update.

I unchecked the 'required' option of virtuemart_state_id in the Shopper Field list but nothing.

Quote from: jjk on January 06, 2018, 20:13:31 PM
5. Are the states of your country published? Normally you need those only if the state/province/region is mandatory in the postal address, like in the USA for example.
How shall I check this?
Title: Re: Billing Information no States are displayed - error
Post by: jjk on January 07, 2018, 15:16:52 PM
Quote from: panoss on January 07, 2018, 14:06:51 PM
How shall I check this?
Have a look at 'Configuration' > 'Countries' > 'Your Country' > 'States'.
Title: Re: Billing Information no States are displayed - error
Post by: panoss on January 07, 2018, 15:49:22 PM
I checked it out, all states of my country are published.
Title: Re: Billing Information no States are displayed - error
Post by: jenkinhill on January 07, 2018, 18:39:48 PM
What is the URL?
Title: Re: Billing Information no States are displayed - error
Post by: jjk on January 07, 2018, 19:21:57 PM
Also, which state selection do you mean, 'Shopper Information' in the front-end BillTo form or back-end 'Shop' > 'Shopper Information' tab or both? Just asking because you mentioned using the protostar (front-end) template earlier.
Title: Re: Billing Information no States are displayed - error
Post by: panoss on January 08, 2018, 09:20:15 AM
Quote from: jenkinhill on January 07, 2018, 18:39:48 PM
What is the URL?
/administrator/index.php?option=com_virtuemart&view=user&task=editshop

Quote from: jjk on January 07, 2018, 19:21:57 PM
Also, which state selection do you mean, 'Shopper Information' in the front-end BillTo form or back-end 'Shop' > 'Shopper Information' tab or both? Just asking because you mentioned using the protostar (front-end) template earlier.
I meant in the backend, SHOP->Shop->Shopper Information->Bill To Information->Country.

(to avoid confusions: Template for front end: protostar. Template for back end: isis)