4.3 ww.dll API Reference : API descriptions : Functions with database access : clearitemres
 
clearitemres
 
Description
clearitemres eliminates records from the item_res table. The item_res table tracks real-time item reservations (primarily when a user puts an item into his cart). This table is used to provide accurate Max4Sale remaining quantity calculations.
 
Input fields
 
XML tag
Description
<wwsale_id>
Web sale ID from a web sale. If a wwsale_id that is passed already exists in the ww_sales table, ww.dll returns, “ERR:wwsale_id is not unique.” Either <wwsale_id> or <itmres_no> (or both) must be specified.
<itmres_no>
Item reservation number. Either <wwsale_id> or <itmres_no> (or both) must be specified.
 
Return fields
Status only.
 
Example
 
Example invocation:
<func>clearitemres</func><wwsale_id>1000000</wwsale_id><itmres_no>
4000000</itmres_no>
 
Example return string:
OK :Records deleted
 
See also
newitemres