SeparateItems — treat items with quantity greater than 1 as separate items
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
.
Interchange 5.9.0:
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"); } }