Name

FractionalItems — allow fractional quantities in the shopping cart

SYNOPSIS

No | Yes

DESCRIPTION

The directive specifies whether the quantity of items in the shopping cart could be fractional, such as 2.5 or 1.25.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Enabling FractionalItems

FractionalItems 1

NOTES

AVAILABILITY

FractionalItems is available in Interchange versions:

4.6.0-5.7.0 (cvs-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 660

['FractionalItems',  'yesno',       'No'],

Source: lib/Vend/Config.pm
Line 5260 (context shows lines 5260-5272)

sub parse_yesno {
my($var, $value) = @_;
$_ = $value;
if (m/^y/i || m/^t/i || m/^1/ || m/^on/i) {
  return 1;
}
elsif (m/^n/i || m/^f/i || m/^0/ || m/^of/i) {
  return 0;
}
else {
  config_error("Use 'yes' or 'no' for the $var directive\n");
}
}

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!