Name

UPS_COUNTRY_REMAP — (partly documented)

SYNOPSIS

{ }

DESCRIPTION

# Remap Monaco to France for UPS
Variable UPS_COUNTRY_REMAP   MC=FR

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

UPS_COUNTRY_REMAP is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/UserTag/ups_query.tag
Line 46 (context shows lines 36-50)

elsif(! $modulo) {
$modulo = 9999999;
}

$country = uc $country;

  my %exception;

$exception{UK} = 'GB';

if(! $::Variable->{UPS_COUNTRY_REMAP} ) {
  # do nothing
}
elsif ($::Variable->{UPS_COUNTRY_REMAP} =~ /=/) {
  my $new = Vend::Util::get_option_hash($::Variable->{UPS_COUNTRY_REMAP});

Source: code/UserTag/ups_query.tag
Line 50 (context shows lines 40-54)

$country = uc $country;

my %exception;

$exception{UK} = 'GB';

if(! $::Variable->{UPS_COUNTRY_REMAP} ) {
# do nothing
}
elsif ($::Variable->{UPS_COUNTRY_REMAP} =~ /=/) {
my $new = Vend::Util::get_option_hash($::Variable->{UPS_COUNTRY_REMAP});
Vend::Util::get_option_hash(\%exception, $new);
}
else {
  Vend::Util::hash_string($::Variable->{UPS_COUNTRY_REMAP}, \%exception);

Source: code/UserTag/ups_query.tag
Line 54 (context shows lines 44-58)

$exception{UK} = 'GB';

if(! $::Variable->{UPS_COUNTRY_REMAP} ) {
# do nothing
}
elsif ($::Variable->{UPS_COUNTRY_REMAP} =~ /=/) {
my $new = Vend::Util::get_option_hash($::Variable->{UPS_COUNTRY_REMAP});
Vend::Util::get_option_hash(\%exception, $new);
}
else {
Vend::Util::hash_string($::Variable->{UPS_COUNTRY_REMAP}, \%exception);
}

$country = $exception{$country} if $exception{$country};


Source: lib/Vend/Ship/QueryUPS.pm
Line 79 (context shows lines 69-83 in calculate():41)

$modulo = $::Variable->{UPS_QUERY_MODULO} || 150;
}
elsif(! $modulo) {
$modulo = 9999999;
}

$country = uc $country;

  my %exception = ( UK => 'GB');

if(! $::Variable->{UPS_COUNTRY_REMAP} ) {
  # do nothing
}
elsif ($::Variable->{UPS_COUNTRY_REMAP} =~ /=/) {
  my $new = Vend::Util::get_option_hash($::Variable->{UPS_COUNTRY_REMAP});

Source: lib/Vend/Ship/QueryUPS.pm
Line 83 (context shows lines 73-87 in calculate():41)

}

$country = uc $country;

my %exception = ( UK => 'GB');

if(! $::Variable->{UPS_COUNTRY_REMAP} ) {
# do nothing
}
elsif ($::Variable->{UPS_COUNTRY_REMAP} =~ /=/) {
my $new = Vend::Util::get_option_hash($::Variable->{UPS_COUNTRY_REMAP});
Vend::Util::get_option_hash(\%exception, $new);
}
else {
  Vend::Util::hash_string($::Variable->{UPS_COUNTRY_REMAP}, \%exception);

Source: lib/Vend/Ship/QueryUPS.pm
Line 87 (context shows lines 77-91 in calculate():41)

my %exception = ( UK => 'GB');

if(! $::Variable->{UPS_COUNTRY_REMAP} ) {
# do nothing
}
elsif ($::Variable->{UPS_COUNTRY_REMAP} =~ /=/) {
my $new = Vend::Util::get_option_hash($::Variable->{UPS_COUNTRY_REMAP});
Vend::Util::get_option_hash(\%exception, $new);
}
else {
Vend::Util::hash_string($::Variable->{UPS_COUNTRY_REMAP}, \%exception);
}

$country = $exception{$country} if $exception{$country};


AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!