4.84. update

Forces an update of the specified interchange function. Function may be one of the following:

4.84.1. Summary

    [update function]
Parameters Description Default
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.
DEFAULT_VALUE
name Cart name to update (if 'function=cart')
  • Default: current 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:

4.84.2.1. function

4.84.2.2. name

Cart name to update (if 'function=cart')