Name

OnFly — enable on-fly additions to client shopping cart

SYNOPSIS

0 | 1 | ITL_tag_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 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},
  $code,
  $quantity,
  $fly[$j],
);

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 respectively, and the last argument is the value of mv_order_fly mv variable for the item.

The default [onfly] tag that you can use in place of ITL_tag_name is already provided in Interchange.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Enabling OnFly

OnFly 1

Example: Configuring OnFly with a custom ITL tag

OnFly my_onfly_tag

For your custom tag, use the existing [onfly] tag as a starting point, whose CVS source is available online in code/SystemTag/onfly.coretag.


NOTES

See onfly glossary entry for a complete discussion.

AVAILABILITY

OnFly is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 701

['OnFly',        undef,            ''],

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!