Name

DiscountSpaceVar — specify names of CGI variables to check for discount space definition

SYNOPSIS

cgi_variable_name...

DESCRIPTION

DiscountSpaceVar is a configuration directive with the default value of 'mv_discount_space'. It is a list of names of CGI variables to check per page process, such that a CGI variable can be used to specify the discount space.

For this directive to have any effect, the DiscountSpacesOn directive must be enabled.

The default value, mv_discount_space, is likely to suffice for most purposes, but people could want to tie the discount space to other things, such as the cart name, by including other variable names in this array (for instance, mv_cartname would tie the discount space to the cart name, which could be convenient in some situations).

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Defining DiscountSpaceVar

DiscountSpacesOn Yes
DiscountSpaceVar mv_cartname

NOTES

AVAILABILITY

DiscountSpaceVar is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 703

['DiscountSpaceVar', 'array',            'mv_discount_space'],

Source: lib/Vend/Config.pm
Line 3763 (context shows lines 3763-3783)

sub parse_array {
my($item,$settings) = @_;
return '' unless $settings;
my(@setting) = grep /\S/, split /[\s,]+/, $settings;

my $c;

if(defined $C) {
  $c = $C->{$item} || [];
}
else {
  no strict 'refs';
  $c = ${"Global::$item"} || [];
}

for (@setting) {
  check_legal($item, $_);
  push @{$c}, $_;
}
$c;
}

AUTHORS

Ethan Rowe

SEE ALSO

DiscountSpacesOn(7ic), discount(7ic)

DocBook! Interchange!