[ic] More Order Routing Fun

Mike Heins interchange-users@icdevgroup.org
Fri Apr 25 09:26:01 2003


Quoting Michael Goldfarb (mikeg@contactdesigns.com):
> This is a follow up to my post yesterday about Adding new order routes
> (http://www.icdevgroup.org/pipermail/interchange-users/2003-April/032829
> .html)
> 
> I think I have now read every single post and document about order
> routes and it seems like a lot of people have in the past gotten to this
> same point, but I have never seen a resolution posted. If anyone could
> possibly help push me across the finish line on this one, I think it
> would save a lot of people time in the future (including me right now
> :-)
> 
> The follow up from Ed Lafrance here helped with one of the quirks that I
> think was causing a problem:
> http://www.icdevgroup.org/pipermail/interchange-users/2002-June/021857.h
> tml
> 
> After following his advice and putting all routes above the "default"
> route (including the payment routes) I was able to get a bit further.
> 
> My new form is now definitely calling this correct route in catalog.cfg:
> 
> Route wholesaleorders  <<EOF
> 	email             'wholesale@domain.com'
> 	report            etc/mail_receipt1
> 	from              'WholeSale Orders <__ORDERS_TO__>'
>       receipt           etc/wholesale_receipt.html
> EOF
> 
> The 'email', 'report', and 'from' directives are all being utilized
> correctly.
> 
> The problem I am having is that now matter what I set the 'receipt'
> directive to, it displays the etc/receipt.html page.
> 
> The other problem is that I have tried adding other directives (like
> 'attach' and 'empty'), but when I do, no receipt page is shown but the
> rest of the route runs fine.
> 
> I have tried starting over with a fresh catalog.cfg, but the result is
> the same every time.
> 
> If anyone has encountered this and could offer a solution I can stop
> banging my head into the wall and kicking my computer.

I believe the receipt specification has to come from the route which
is the main route, i.e. the default route with supplant = 1.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.513.523.7621      <mike@perusion.com>

Any man who is under 30, and is not liberal, has not heart; and any man
who is over 30, and is not a conservative, has not brains.
 -- Winston Churchill