UPS_COUNTRY_REMAP — (partly documented)
Interchange 5.9.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};