News:

Looking for documentation? Take a look on our wiki

Main Menu

Rearranged Shopper Fields, Now vmERROR

Started by TrigWebDesignUSA, December 16, 2015, 23:06:37 PM

Previous topic - Next topic

TrigWebDesignUSA

Hey all,
I am using VM3.0.12 on Joomla 3.4.6
Everything was going fine, then I arranged the Shopper Fields so it was more American-ized, Address, City, State, Zip. After that, when trying to add or edit an address in the Cart, an erorr appears at the top:
Error
vmError: Model Userfields, state with id Shipment not found

There was another topic on this from a year ago, no answer or fix. I am hoping for better luck!
Website: http://www.flyteskool.ws/index.php

GJC Web Design

I think u would get more help if you provide a link to a simple single product.. gave up after being asked to upload etc etc
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


GJC Web Design

can register without problems although u have some weird defaults "shipment" in the fields

Turn off the activation .. it does nothing and looses sales big time

I can also edit my data

NOTICE
User data stored

and add a ship address .. see no problems apart from activation

sure your not testing as an admin?  Big no no

would loose the captcha as well..  I run dozens of VM installs and never have a problem with spammy registrations (via Joomla yes.. VM no)
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

TrigWebDesignUSA

Thanks, I will deactivate Captcha, good call.
I am testing as Admin, I know it is a bad idea, but the error was not there as Admin before I rearranged shopper fields. If I am the only one that will see it, fine; but I would rather have no errors to make me sleep better at night...

GJC Web Design

as I say.. saw none....

you can do a search in administrator/com_virtuemart/models/userfields.php to see what throw s that error

but .. as i said.. you have weird default values "shipment" in 3 or 4 fields  .. delete them as

a bit of a pointer that that is the same as the error

vmError: Model Userfields, state with id Shipment not found

I think that default is also set for the state id
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

TrigWebDesignUSA

#6
Yeah, I get it now, somehow something is putting "Shipping" as a default value in a bunch of fields. Looks like a default value of COM_VIRTUEMART_USER_FORM_ST_LABEL in these fields, it must be a plugin I installed today or something.

TrigWebDesignUSA

Ok, I figured it out for others that may have this issue. I had changed the order of my Shopper Fields, specifically City, State, Zip and Country. It seems that when you do this, Virtuemart fills in a Default Value of COM_VIRTUEMART_USER_FORM_ST_LABEL in all moved fields. Weird bug, it turned out not to be a plugin, but something in VM3 itself. Hope this helps anyone else with this issue!

coxi

Hi,
Using VM 3.0.14, I had also issue with fields order.
"vmError: Model Userfields, state with id COM_VIRTUEMART_USER_FORM_ST_LABEL not found" appeared after moving up zip code and state.

GJC Web Design

Try just removing the default values in the shopper fields
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