Name

MV_VARIANT_JOINER —

SYNOPSIS

DESCRIPTION

VARIABLE TYPE

Catalog variable

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

MV_VARIANT_JOINER is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Order.pm
Line 2199 (context shows lines 2189-2203 in update_quantity():2064)

}

  $::Values->{"quantity$i"} = delete $CGI::values{"quantity$i"};
SKUSET: {
  my $sku;
  my $found_option;
  last SKUSET unless $sku = delete $CGI::values{"mv_sku$i"};
  my @sku = split /\0/, $sku, -1;
  for(@sku[1..$#sku]) {
    if (not length $_) {
    $_ = $::Variable->{MV_VARIANT_JOINER} || '0';
    next;
    }
    $found_option++;
  }

Source: lib/Vend/Order.pm
Line 2361 (context shows lines 2351-2365 in add_items():2299)

  $Vend::Cfg->{UseModifier} = [] if ! $Vend::Cfg->{UseModifier};
  my %seen;
  my @mods = (grep $_ !~ /^mv_/, split /\0/, $CGI::values{mv_item_option});
  @mods = grep ! $seen{$_}++, @mods;
  push @{$Vend::Cfg->{UseModifier}}, @mods;
}

if($CGI::values{mv_sku}) {
  my @sku = split /\0/, $CGI::values{mv_sku};
  for (@sku) {
    $_ = $::Variable->{MV_VARIANT_JOINER} || '0' if ! length($_);
  }
  $items[0] = join '-', @sku;
  my $sku_field = $Vend::Cfg->{Options_repository}{Matrix}->{sku} || 'sku';
  $skus[0] = Vend::Data::product_field($sku_field, $items[0]);

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!