OrderLineLimit — specify maximum number of items the user is allowed to place in the shopping cart
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.
Set the directive to a number greater than the number of line items a user is ever expected to order.
Interchange 5.9.0:
Source: lib/Vend/Config.pm
Line 3992 (context shows lines 3992-3999)
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; }