Name

UPS_QUERY_MODULO — (partly documented)

SYNOPSIS

{ }

DESCRIPTION

If shipping aggregation is used, it allows you to override the weight in which aggregation occurs. If not set, aggregation occurs at 150.

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_QUERY_MODULO 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 34 (context shows lines 24-38)

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

my $modulo = $opt->{aggregate};

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

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

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

$country ||= $opt->{default_country} || 'US';

my $zip     = $opt->{zip}    || $::Values->{$opt->{geo}};
$zip ||= $opt->{default_geo};

my $modulo = $opt->{aggregate};

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

Source: lib/Vend/Ship/QueryUPS.pm
Line 268 (context shows lines 258-272 in calculate():41)

value in absence of ZIP. No default -- will return 0 and error if
no zip.

=item default_country

The country code to use if none supplied -- for defaulting shipping to some
value in absence of country. Default US.

=item aggregate

If 1, aggregates by a call to weight=150 (or $Variable->{UPS_QUERY_MODULO}).
Multiplies that times number necessary, then runs a call for the
remainder. In other words:

[ups-query weight=400 mode=GNDCOM aggregate=1]

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!