Name

OrderLineLimit — specify maximum number of items the user is allowed to place in the shopping cart

SYNOPSIS

count

DESCRIPTION

Specify maximum number of items that the user is allowed to place in the shopping cart.

Some poorly-mannered robots may "attack" a site by following all links one after another. Some even ignore any robots.txt file that may have been created. If one of these bad robots orders several dozen or more items, the time required to save and restore the shopping cart from the user session may become excessive.

When the OrderLineLimit is exceeded, the command defined in LockoutCommand will be executed and the shopping cart will be emptied.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Setting OrderLineLimit

OrderLineLimit 50

NOTES

Set the directive to a number greater than the number of line items a user is ever expected to order.

AVAILABILITY

OrderLineLimit is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 689

['OrderLineLimit',   'integer',          0],

Source: lib/Vend/Config.pm
Line 3973 (context shows lines 3973-3980)

sub parse_integer {
my($var, $value) = @_;
$value = hex($value) if $value =~ /^0x[\dA-Fa-f]+$/;
$value = oct($value) if $value =~ /^0[0-7]+$/;
config_error("The $var directive (now set to '$value') must be an integer\n")
  unless $value =~ /^\d+$/;
$value;
}

AUTHORS

Interchange Development Group

SEE ALSO

RobotLimit(7ic), LockoutCommand(7ic)

DocBook! Interchange!