VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: TrigWebDesignUSA on December 16, 2015, 23:06:37 PM

Title: Rearranged Shopper Fields, Now vmERROR
Post by: TrigWebDesignUSA on December 16, 2015, 23:06:37 PM
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
Title: Re: Rearranged Shopper Fields, Now vmERROR
Post by: GJC Web Design on December 16, 2015, 23:34:40 PM
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
Title: Re: Rearranged Shopper Fields, Now vmERROR
Post by: TrigWebDesignUSA on December 16, 2015, 23:40:56 PM
My apologies! Here is a product that does not need the upload, although it is still there - ignore it.
http://www.flyteskool.ws/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=8&virtuemart_category_id=26&Itemid=110&lang=en
Title: Re: Rearranged Shopper Fields, Now vmERROR
Post by: GJC Web Design on December 17, 2015, 00:02:09 AM
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)
Title: Re: Rearranged Shopper Fields, Now vmERROR
Post by: TrigWebDesignUSA on December 17, 2015, 00:05:10 AM
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...
Title: Re: Rearranged Shopper Fields, Now vmERROR
Post by: GJC Web Design on December 17, 2015, 00:08:35 AM
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
Title: Re: Rearranged Shopper Fields, Now vmERROR
Post by: TrigWebDesignUSA on December 17, 2015, 00:15:58 AM
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.
Title: Re: Rearranged Shopper Fields, Now vmERROR
Post by: TrigWebDesignUSA on December 17, 2015, 00:23:50 AM
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!
Title: Re: Rearranged Shopper Fields, Now vmERROR
Post by: coxi on June 09, 2016, 09:38:49 AM
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.
Title: Re: Rearranged Shopper Fields, Now vmERROR
Post by: GJC Web Design on June 09, 2016, 10:29:01 AM
Try just removing the default values in the shopper fields