VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: wbyers on May 04, 2017, 19:43:34 PM

Title: Billing and Virtuemart userinfo
Post by: wbyers on May 04, 2017, 19:43:34 PM
Hello, I work at a company that specializes in providing sports programs for children. At the moment my employers desire an alteration to the cart so that when one uses the changes the billing information pane info in the pane in the cart it does not save over the virtuemart_userinfos. Because at current changing the information there causes the shoppers info to be altered, we would like to avoid this if at all possible. I've looked online and have not found any details about how to do this. Is it even possible? and if so, how would I go about it?
Title: Re: Billing and Virtuemart userinfo
Post by: GJC Web Design on May 04, 2017, 19:51:26 PM
how could this work? Billing info IS VM userinfo..

what are u actually trying to achieve with this setup?
Title: Re: Billing and Virtuemart userinfo
Post by: wbyers on May 04, 2017, 19:55:17 PM
We're trying to prevent the cart billing information from overriding the userinfo that already exists. Is that just unreasonable?
Title: Re: Billing and Virtuemart userinfo
Post by: GJC Web Design on May 04, 2017, 22:59:26 PM
yes--- because->   Billing info IS VM userinfo..

if your not going to use/store billing info from the form then whats the point of having it?
Title: Re: Billing and Virtuemart userinfo
Post by: wbyers on May 04, 2017, 23:04:56 PM
 it also goes to order userinfos. We want to keep getting the order detail userinfos but we don't need the virtuemart_userinfos stuff being continuously updated at the same time.
Title: Re: Billing and Virtuemart userinfo
Post by: AH on May 05, 2017, 09:25:59 AM
You have not stated the business reason for such a requirement

There is nothing you can do by configuration to adjust this functionality, it is how the VM component functions

Order_userinfos are the historic snapshot of Billing and Shipping detail  used at the time of ordering

Vm_userinfos holds the Billing Details and Shipping details for registered customers are "loaded" when a customer signs in

You may find someone that would look to "change" the behaviour of VM but you would have to ensure that this did not prevent you from taking updates in the future.

Title: Re: Billing and Virtuemart userinfo
Post by: GJC Web Design on May 05, 2017, 11:10:34 AM
why don't u hide the "Billing" after the first registration and only show shipping ?

But your really not explaining WHY you need this..  if u want help it is a reasonable request to fully explain what u need help with!
Title: Re: Billing and Virtuemart userinfo
Post by: wbyers on May 05, 2017, 14:29:28 PM
We need to do this because we want to avoid overriding the userinfo which comes from the billing info. Because we are user using use rinfo for account information and any change to the billing changes the information in the user facing account. This is something we really want to avoid because it causes confusion.
Would you recommend a separate table for user account data instead or anything for that matter?
We'd really like to avoid having the user account details change in usg_virtuemart_userinfos just because the billing info does.
Title: Re: Billing and Virtuemart userinfo
Post by: GJC Web Design on May 05, 2017, 21:51:57 PM
then simply hide the billing info form for logged in users.. then they can never change it which is what u appear to want...
Title: Re: Billing and Virtuemart userinfo
Post by: wbyers on May 05, 2017, 22:34:11 PM
Then, is there anyway we can support multiple billing addresses for each user without a lot of hassle? That might be more what we're looking for.
Title: Re: Billing and Virtuemart userinfo
Post by: GJC Web Design on May 05, 2017, 23:55:37 PM
rename the shipping addresses... they are just labels