Name

UPS_COUNTRY_FIELD —

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

UPS_COUNTRY_FIELD 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 26 (context shows lines 16-30)

$opt ||= {};
BEGIN {
eval {
  require Business::UPS;
  import Business::UPS;
};
};

$origin    = $::Variable->{UPS_ORIGIN}
      if ! $origin;
$country  = $::Values->{$::Variable->{UPS_COUNTRY_FIELD}}
      if ! $country;
$zip    = $::Values->{$::Variable->{UPS_POSTCODE_FIELD}}
        if ! $zip;


Source: lib/Vend/Ship/QueryUPS.pm
Line 55 (context shows lines 45-59 in calculate():41)

do_error("Ship mode %s: Requires installation of Business::UPS", $mode);
}

$opt->{service}         ||= $opt->{table};
if(! $opt->{service} and $extra =~ /^\w+$/)  {
$opt->{service} = $extra;
}
$opt->{service} ||= $opt->{table} || $mode;

$opt->{origin}      ||= $::Variable->{UPS_ORIGIN};
$opt->{country_field}  ||= $::Variable->{UPS_COUNTRY_FIELD} || 'country';
$opt->{geo}        ||= $::Variable->{UPS_POSTCODE_FIELD} || 'zip';

my $origin  = $opt->{origin};
my $country = $opt->{country} || $::Values->{$opt->{country_field}};

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!