4.84. update
Forces an update of the specified interchange function. Function may be one of the following:
- cart (updates current or named cart)
- process (updates order or search)
- values (updates user-entered fields)
- data (updates database, using current mv_ CGI form variables)
4.84.1. Summary
[update function]
Parameters | Description | Default |
function |
|
DEFAULT_VALUE |
name |
Cart name to update (if 'function=cart')
|
DEFAULT_VALUE |
Attributes | Default |
interpolate (reparse) | No |
Other_Characteristics | |
Invalidates cache | YES |
Container tag | No |
Has Subtags | No |
Nests | Yes |
Tag expansion example:
[update function] --- TODO: (tag result)
ASP-like Perl call:
$Tag->update( { function => VALUE_function }, $body );
or similarly with positional parameters,
$Tag->update(function, $attribute_hash_reference, $body);
4.84.2. Description
Forces an update of the specified interchange function. Function may be one of the following:
- cart (updates current or named cart)
- process (updates order or search)
- values (updates user-entered fields)
- data (updates database, using current mv_ CGI form variables)
4.84.2.1. function
- cart
- Updates current or named cart (see name attribute)
- process
- Updates an order or a search page
- values
- Updates user-entered fields
- data
- Updates database, using current mv_ CGI form variables, for example:
- mv_data_table Table to update
- mv_data_key Key into table
- mv_data_fields Fields to update (space or null delimited)
- mv_data_function One of the following:
- delete
- update
- insert
- delete
- etc.
- Updates database, using current mv_ CGI form variables, for example:
4.84.2.2. name
Cart name to update (if 'function=cart')
- Default: current cart