Hello Stan,
Above missing fields are related to the shipping address, not the billing address.
So when a customer doesn't want to provide a seperate shipping address (so when Billing address = shipping address) VM shows the warning messages of missing values for the shipping address fields.
When I choose to have a seperate shipping address and I leave the Shipping address name (nickname) empty I get the error "Check failed: ST has no name".
I think I have two solutions for the problems:
1. When Billing address = shipping address , just take all values from Billing address and post them as Shipping address.
- Code: Select all
if(ST.fieldname=="") { ST.fieldname=BT.fieldname; }
2. When Shipping address nickname = empty, give a warning before posting OR get something like nickname = firstname + fullname of the customer.
- Code: Select all
if(ST.nickname=="") { error = warning; }
or
- Code: Select all
if(ST.nickname=="") { ST.nickname==BT.Firstname BT.Middlename BT.Lastname; }
I hope you can make a update of OPC for VM 2.0.8.
Thanks in advance
Bart