";
}
$ret .= "
Order \#$cart
";
$ret .= "
$sh->{'dateready'}
";
$ret .= "
Enclosed are the items you ordered. If you have any questions, email accounts\@livejournal.com and reference the order number above.
";
LJ::Pay::render_cart($cartobj, \$ret, { shipping_labels => 1 });
$ret .= "
";
$ret .= "
" . LJ::Pay::postal_address_html() . "
\n";
$ret .= "
";
my %payvar;
my $sth = $dbh->prepare("SELECT pkey, pval FROM payvars WHERE payid=? AND pkey LIKE 'ship%'");
$sth->execute($cartobj->{'payid'});
while (my ($k, $v)= $sth->fetchrow_array) { $payvar{$k} = $v; }
my $ctry = uc($payvar{'ship_country'});
# Canadian shipping labels need to be printed in all caps, ugh
if ($ctry eq 'CA') {
$payvar{$_} = uc($payvar{$_})
foreach grep { $_ =~ /^ship_/ } keys %payvar;
$country{'CA'} = uc($country{'CA'});
}
$ret .= "$payvar{'ship_name'}
";
$ret .= "$payvar{'ship_addr1'}
";
$ret .= "$payvar{'ship_addr2'}
" if $payvar{'ship_addr2'};
$ret .= "$payvar{'ship_city'}, $payvar{'ship_state'} $payvar{'ship_zip'}
";
if ($ctry ne "US") {
$ret .= $country{$ctry};
}
$ret .= "
";
$ret .= "
[$cart]
";
$ret .= "
"; # end page
}
$ret .= "no orders found past $POST{'date'}" unless $ct;
return $ret;
}
_code?>