[ic] Blocking FedEx to PO Boxes

Dan Browning interchange-users@interchange.redhat.com
Thu Nov 29 21:18:01 2001


> On Thu, 29 Nov 2001, Dan Browning wrote:
> 
> DB>>The COD payment type doesn't allow PO Box deliver either, 
> you might 
> DB>>start with the code that you find under COD in 
> etc/profiles.checkout 
> DB>>and then modify it for your payment type and shipping 
> values, etc.  
> DB>>HTH,
> 
> I'm still running 4.6.3 and that file doesn't exist.
> 
> Thanks anyways.
> 
> -= Jim =-

You can get the 4.8.3 one here, FYI (I bet it's compatible, but don't
quote me on it):

http://interchange.redhat.com/cgi-bin/cvsweb/~checkout~/interchange/dist
/foundation/etc/profiles.order?rev=2.0&content-type=text/plain&only_with
_tag=STABLE_4_8-branch

The relevant text is below.

HTH (Hope That Helps),

Dan Browning
Kavod Technologies

__NAME__                            cod
fname=required
lname=required
[if value address1 =~ /p\.o\.\s*box\b/i]
not_po_box=mandatory No PO boxes allowed for COD.
[/if]
[if value address2 =~ /p\.o\.\s*box\b/i]
not_po_box=mandatory No PO boxes allowed for COD.
[/if]
address1=required
city=required
country=required
[if value country =~ /^(US|CA)$/i]
	state=state_province
	zip=postcode
[/if]
&or phone_night=phone, phone_day=phone Must have day or evening phone
number

&set = prof_mode_accepted [var COD_ACCEPTED]

prof_mode_accepted=required This site doesn't accept COD orders. You
should not have been offered that option; please contact us.

&fatal = yes
email=required
email=email

&set = mv_payment COD
&calc = $Values->{mv_handling} .= "\0cod" unless $Values->{mv_handling}
=~ /\bcod\b/; return 1;

&final = yes
&setcheck=mv_email [value email]

__END__