Name

SeparateItems — treat items with quantity greater than 1 as separate items

SYNOPSIS

No | Yes

DESCRIPTION

The SeparateItems directive changes the default behavior when ordering item in quantity greater of 1. Instead of only increasing quantity information, the items are treated as being separate and are listed just as different products would be (one per line).

The directive is of little global use, but it allows item attributes to be easily set for different instances of the same part number (SKU), such as color or size.

The value can be overridden with both scratch and value variable mv_separate_items.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Enabling SeparateItems

Put the following in catalog.cfg:

SeparateItems       Yes

NOTES

AVAILABILITY

SeparateItems is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 671

['SeparateItems',    'yesno',       'No'],

Source: lib/Vend/Config.pm
Line 5434 (context shows lines 5434-5446)

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!