Interchange Developer Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] Change where orders go



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.

- Ed L.


>

===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================



Search for: Sort by: