You might also put something like this in your verify_order subroutine in
addition to the mods Charles pointed out. It will make sure that if you are
in a bulk order the period will be reset properly. You can then add
{{period_warning}} in your verify template to let them know you changed
their info.
my ($period_warning);
foreach $domain (keys %good_domains) {
# check reg period and make sure it's cool
if (( $domain =~ /\.info/ ) && ($HTML{period} eq "1")) {
$HTML{period} = "2";
$in{period} = "2";
$period_warning = "<br><br><B><FONT COLOR=\"#FF0000\">INFO
Domains Must Be Registered for a Minimum of 2 Years.</FONT></B>\n";
}
if (( $domain =~ /\.uk/ ) && ($HTML{period} ne "2")) {
$HTML{period} = "2";
$in{period} = "2";
$period_warning .= "<br><br><B><FONT COLOR=\"#FF0000\">UK
Domains Must Be Registered for Exactly 2 Years.</FONT></B>\n";
}
}
$HTML{period_warning} = $period_warning;
--
John Keegan
[EMAIL PROTECTED]
http://RackShare.com
> From: Charles Daminato <[EMAIL PROTECTED]>
> Date: Sat, 6 Oct 2001 10:43:16 -0400 (EDT)
> To: Robert <[EMAIL PROTECTED]>
> Cc: Opensrs-Dev <[EMAIL PROTECTED]>
> Subject: Re: Anyone have a bit of code to check that an info reg is 2 years?
>
> Here's something posted to discuss:
>
> http://www.opensrs.org/archives/discuss-list/0109/0892.html
>
> Charles Daminato
> TUCOWS Product Manager
> [EMAIL PROTECTED]
>
> On Sat, 6 Oct 2001, Robert wrote:
>
>> I'll look at it tomorrow mycself - but in the meantime, if someone has it
>> why reinvent the wheel.
>> Just a little something to check that if the reg is .info, the min-years is
>> 2.
>>
>> ta muchh
>> Bob
>> ---
>> Quantum Radio: World Music with a difference.
>> http://quantum-radio.net.au/Music/
>> Now Playing: Tim Tatum - Ascension
>>
>>
>>
>>
>