Find file
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (50 sloc) 1.51 KB
__NAME__ purpose
enable on-fly additions to client shopping cart
__NAME__ see also
__NAME__ synopsis
<group choice='plain'>
<arg choice='plain'><literal>0</literal></arg>
<arg choice='plain'><literal>1</literal></arg>
<arg choice='plain'><replaceable>ITL_tag_name</replaceable></arg>
__NAME__ description
If the directive is enabled, it enables on-the-fly item additions to the
client shopping cart. If set to a name of an existing &glos-ITL; tag,
the tag definition will be used to parse and format the item with the
following call:
$item = Vend::Parse::do_tag($Vend::Cfg->{OnFly},
In other words, your custom tag will be invoked with four arguments,
of which the first three are the tag name, item code and item quantity
and the last argument is the value of <mv>mv_order_fly</mv> &glos-mv;
variable for the item.
The default &tag-onfly; tag that you can use in place of
<option>ITL_tag_name</option> is already provided in &IC;.
__NAME__ notes
See &glos-onfly; glossary entry for a complete discussion.
__NAME__ example: Enabling OnFly
OnFly 1
__NAME__ example: Configuring OnFly with a custom ITL tag
OnFly my_onfly_tag
For your custom tag, use the existing &tag-onfly; tag as a starting
point, whose
CVS source is available online in &cvsfile-code_SystemTag_onfly.coretag;.