[ic] Is shipmode is selected by generous regex? Odd problem

Paul Jordan paul at gishnetwork.com
Wed Jan 19 16:05:34 UTC 2011


> From: mike at perusion.com
> To: interchange-users at icdevgroup.org
> Subject: Re: [ic] Is shipmode is selected by generous regex? Odd problem
> Quoting Paul Jordan (paul at gishnetwork.com):
> > ???
> > In rearranging my shipmodes I noticed something odd. In my country file I
> > have 'usps'. In my shipping.asc I have:
> >
> > usps_actual: Yadda Yaddda Yadda
> > ....
> > ....
> >
> > usps_promo: Yadda Yaddda Yadda
> > ....
> > ....
> >
> > usps: Yadda Yaddda Yadda
> > ....
> > ....
> >
> >
> > The last one is the main one named in the country record, and the last one
> > forwards ">>" to usps_promo or usps_actual depending. The interesting thing
> > is though, usps_actual is the only one that is ever ran.
> >
> > If I rename the first to to actual_usps and promo_usps (so usps is not at
> > the beginning), everything works as expected. Are shipmodes selected (for
> > display) by some generous REGEX that is finding usps_actual and thinking
> > that is the usps mode?
>
> No underscores allowed.

 
Mike, that may be, but I just switched them to:
 
uspsa ...
uspsp ...
usps  ...
 
and the 'usps' mode in countries runs the uspsa mode. However, if I:
 
ausps ...
pusps ...
usps  ...
 
Everything works fine again. Does it matter the physical order mode are listed in?
 
This is on 5.6.3
 
Paul
 
 
  		 	   		  


More information about the interchange-users mailing list