Where to store the VAT number?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
niall08
Commander (CMDR)
Commander (CMDR)
Posts: 175
Joined: Tue Dec 09, 2008 10:29 am

Where to store the VAT number?

Post by niall08 » Thu Mar 12, 2009 4:08 am

There's a paucity of responses on the forum at the minute..

Anyway..

WHERE can I store a customers VAT Number??

At the minute i've kept it in user-defined data, but the values MUST be available for export/import via Dataport - and it sounds like this option is out.

So... What are the options? A new table in the database??? Is THAT accessible from Dataport?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Where to store the VAT number?

Post by mazhar » Thu Mar 12, 2009 4:11 am

May be you should write your custom routine that creates CSV with desired data.

niall08
Commander (CMDR)
Commander (CMDR)
Posts: 175
Joined: Tue Dec 09, 2008 10:29 am

Re: Where to store the VAT number?

Post by niall08 » Thu Mar 12, 2009 4:18 am

Yes - fair enough - but to export the data from where? A user-defined field?

On a different post I said that a simple XML export shows this data - but the CSV from the default template doesn't.. What would be the syntax to access the settings > usersettings > name/value pair?

Or is a new table the right way to go, with a CSV to make use of this data?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Where to store the VAT number?

Post by mazhar » Thu Mar 12, 2009 4:40 am

Code: Select all

//In order to set a custom field for user
        user.Settings.SetValueByKey("myfield"," This is a custom value");

        // In order to geta a saved value
        string value = user.Settings.GetValueByKey("myfield");

niall08
Commander (CMDR)
Commander (CMDR)
Posts: 175
Joined: Tue Dec 09, 2008 10:29 am

Re: Where to store the VAT number?

Post by niall08 » Thu Mar 12, 2009 4:42 am

I can set/gather that data in the AC application - but it's the export/import that defeats me..

How can I access the VAT Numbers for export???

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Where to store the VAT number?

Post by jmestep » Thu Mar 12, 2009 5:59 am

There are several fields in the user table that are not used currently but that are exported in the .csv file. I think the Comments one would be the safest to use in case Able starts using the others later.
PasswordQuestion, PasswordAnswer, Comments, Nickname.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

niall08
Commander (CMDR)
Commander (CMDR)
Posts: 175
Joined: Tue Dec 09, 2008 10:29 am

Re: Where to store the VAT number?

Post by niall08 » Thu Mar 12, 2009 6:04 am

Thanks Judy - not ideal, but if thats the best we've got, it'll have to do.

Thanks ;)

Just a tip for the future development of AC - A VAT Number field!

Post Reply