[ic] newbie w/ quick question.. i'm in a bad situation...

Paul Jordan paul at gishnetwork.com
Tue Sep 23 10:42:31 EDT 2003


> 1) I need to make the email address field not mandatory.  Upon trying to
> familiarize myself with interchange I found this in Order.pm:
> sub _email {
>  my($ref, $var, $val) = @_;
>  if($val and $val =~ /^[\040-\176]+\@[-A-Za-z0-9.]+\.[A-Za-z]+$/) {
>   return (1, $var, '');
>  }
>  else {
>   return (undef, $var,
>    errmsg( "'%s' not an email address", $val )
>   );
>  }
> }
>
> Which I understand is called to verify the email address data... can I just
> modify this here or do I have to look elsewhere?  And once I make the
> necessary changes, do I have to run restart?


No, you never really have to edit files in <vendroot>, especially for simple
preference changes. Assuming this is all similar to a foundation demo, your
email issue can be solved by looking at <catroot>/etc/profiles.order. Ofcourse
this is assuming there is no custom scripts that your former boss implemented
for this.

in profiles.order you will see things like:

email=required

Just remove it and anything else you don't want checked, from the appropriate
profile in use. Remember, if you do deactivate it, you cannot guarantee all
customers received an email receipt

reading:
http://www.icdevgroup.org/cgi-bin/ic/docfly.html?mv_arg=iccattut13%2e02
http://www.icdevgroup.org/archive/interchange-users/2002/msg05679.html


> and kind of OT...
> 2) Getting a verisign error:
> Credit Card Information: Charge error: 104 Reason: Timeout waiting for
> Processor response. Please call in your order or try again.(signio) Charge
> failed, reason: Charge error: 104 Reason: Timeout waiting for Processor
> response. Please call in your order or try again.


Has the site ever taken orders? Is this happening every time? Verify your
Signio settings in either catalog.cfg or variables.txt, check to see if signio
changed transaction urls.

Next time, you will need to post more info, and always remember to mention your
version of IC and database type is relevant.

HTH
Paul

Search more at http://www.icdevgroup.org/cgi-bin/ic/mail_archive.html








More information about the interchange-users mailing list