OnFly — enable on-fly additions to client shopping cart
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.
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.