4.3 ww.dll API Reference : API descriptions : Functions with database access : newguest
 
newguest
 
Description
newguest creates a new guest record in the guest table. Any fields specified in the DefaultInfo setting in the registry (added to the registry using the ww.reg file – see the Salesware E-Commerce document) are included in what’s sent into the server. These fields can be overridden by passing them into this function.
Accepts password_pt, which is a plain text password that is correctly hashed and added to the passwords field in the guests table. The functions newguest and modifyguest also accept cc_swipe_pt and cc_number_pt. These accept plain text which is correctly hashed and added to the cc_swipe and cc_number fields, respectively, in the guests table.
 
Input fields
 
XML tag
Description
<other field>
Optional. Any field that exists in the guests table – e.g., <first_name>. The contents of this tag are written into the corresponding field.
 
Return fields
 
XML tag
Description
<guest_no>
Number of the newly-created guest.
 
Examples
 
Example invocation:
<func>newguest</func><first_name>NEVILLE</first_name><last_name>HARSON</last_name>
 
Example return string:
OK :<first_name>NEVILLE</first_name><guest_no>28000001</guest_no>
<last_name>HARSON</last_name><operator>WEBOP1</operator><parent_no>28000001</parent_no>
<salespoint>WEBSP</salespoint>
 
See also
modifyguest