[ic] Change where orders go

Jerry interchange-users@interchange.redhat.com
Thu Feb 7 13:43:01 2002


Great! Thank you both. That is what I was missing
from everything I had tried. 

> -----Original Message-----
> From: interchange-users-admin@interchange.redhat.com
> [mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of Mike
> Heins
> Sent: Thursday, February 07, 2002 1:30 PM
> To: interchange-users@interchange.redhat.com
> Subject: Re: [ic] Change where orders go
> 
> 
> Quoting Ed LaFrance (edl@newmediaems.com):
> > At 12:11 PM 02/07/2002 -0500, you wrote:
> > >Seems I have a total mental block on how to accomplish
> > >something I just know has a simple solution.
> > >
> > >I need to send the oders to a different email address
> > >based on the state the order is shipped to. Looking
> > >up the correct address from a table is simple, but
> > >everything I've tried to get the emailed order
> > >to go to that address has failed.
> > >
> > >Can ORDERS_TO be changed on the fly? Should this be
> > >done with order routing? Can someone give me kick
> > >in right direction? I can't seem to get the value
> > >of "email" to change to my variable.
> > >
> > >Jerry Uphoff
> > 
> > Hmmm... you *might* be able to do something like this in catalog.cfg
> > 
> > ParseVariables No
> > 
> > Variable  ORDERS_TO  [scratch ORDERS_TO]
> > 
> > ParseVariables Yes
> > .....
> > (order Routes start here...)
> > 
> > And remove ORDERS_TO from the variable table.  Then you could set the 
> > scratch variable any time before the order is submitted - probably on 
> > checkout.html:
> > 
> > [seti ORDERS_TO][data base=foo field=order_email key="[value 
> state]"][/seti]
> > 
> > Seems like it should work, but no guarantees.
> > 
> 
> Yes, in combination with a feature in Order.pm specifically designed for
> this. Set
> 
> 	Route main expandable 1
> 
> Then it will work, as would any ITL tag.
> 
> -- 
> Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
> phone +1.513.523.7621      <mheins@redhat.com>
> 
> Nature, to be commanded, must be obeyed. -- Francis Bacon
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
>