Write script to upload delimited txt file to mySql
$30-250 USD
Completed
Posted over 12 years ago
$30-250 USD
Paid on delivery
I have a script on my server that everyday uploads users to a Joomla MySQL database from a delimited .txt file. The normal Joomla user tables are being updated, but I also need to update the Virtuemart user tables. I think there are three Virtuemart tables that need to be updated, the values are below. Also I've attached the current upload script, it's started, but still needs changes. The .txt file is also attached, which contains the data.
If there are any questions please let me know.
jos_vm_user_info
user_info_id = not sure, I think this is just a unique identifier
user_id = id from jos_users
address_type = not sure, I think it should be BT, but may be different for international
address_type_name = not sure_ I think should be -default- but may be different for international
company = from 'company' in text file
title = empty
last_name = from 'last_name' in text file
first_name = from 'name' in text file
middle_name = empty
phone_1 = 'work_phone1' + 'phone_ext'
phone_2 = 'home_phone'
fax = 'fax_number'
address_1 = if there is a company address use 'company_addr1' if not use 'home_addr1'
address_2 = if there is a company address use 'company_addr2' if not use 'home_addr2'
city = if there is a company city use 'company_city' if not use 'home_city
state = if there is a company state use 'company_state' if not use 'home_state'
country = if there is a company contry use 'company_nation' if not use 'home_nation'
zip = if there is a company zip use 'company_zip' if not use 'home_zip'
user_email = 'email'
extra_field_1 = empty
extra_field_2 = empty
extra_field_3 = empty
extra_field_4 = empty
extra_field_5 = empty
cdate = 'date_dues_paid' in Unix Timestamp format
mdate = time() in unix timestamp format
perms = text should always be shopper
bank_account_nr = empty
bank_name = empty
bank_sort_code = empty
bank_iban = empty
bank_account_holder = empty
bank_account_type = I think this should always be Checking
vm_memberid = I'm not sure where this number comes from, will need to be figured out
jos_vm_auth_user_vendor
user_id = user_id from jos_vm_user_info
vendor_id = 1
jos_vm_shopper_vendor_xref
user_id = user_id from jos_vm_user_info
vendor_id = always the number 1
shopper_group_id = always the number 8
customer_number = I'm not sure where this comes from, it may be a blank value but I'm not sure
Hi,
My name is Luigi Widmore , I'm a expert web developer with 4 years of experience in PHP/MYSQL HTML/CSS.
I've recently developed a similar project.
Check PM for details.