[ic] - order routing help

Terrance Chiang interchange-users@interchange.redhat.com
Sun Mar 17 20:50:01 2002


Hi all
    trying to set up different order routing for different buttons:
1) email: email the receipt to the user only and doesn't show the order
in the receipt page in the web browser
2) print: don't email receipt and show a printable receipt
3) fax: run a sendfax command to send the receipt by fax but doesn't
show any receipt page in the web browser
 
obviously the demo already can email receipt and show the receipt page,
but I can't seem to get the mv_order_route to change... this is the
approach I tried...but didn't work:
 
added the mv_order_route manually in the buttons
 
[button
                name="mv_click"
                src="__THEME__/placeorder.gif"
                text="Mail Order"
                hidetext=1
                form=checkout
]
                mv_order_route=log mail no_receipt
                mv_todo=submit
[/button]
 
[button
                name="mv_click"
                src="__THEME__/placeorder.gif"
                text="Fax Order"
                hidetext=1
                form=checkout
]
                mv_order_route=log fax no_receipt
                mv_todo=submit
[/button]
 
[button
                name="mv_click"
                src="__THEME__/placeorder.gif"
                text="Print Order"
                hidetext=1
                form=checkout
]
                mv_order_route=log main
                mv_todo=submit
[/button]
 
The order's seem to always goto the default route!
then I noticed there's an IgnoreForm mv_order_route directive in the
catalog.cfg which seem to tell the checkout page to ignore passing this
variable across.... so I commented out
 
The mv_order_route variable seem to change after commenting out, but the
receipt page wouldn't show, instead it always go back to the checkout
page. HOWEVER, the log part seem to run, just not the main or no_receipt
part
 
SO... am I suppose to get rid of the IgnoreForm directive for the custom
order_route to work? so what did I do wrong, I've searched everywhere
for the mailinglist and redhat help... nothing about how to set this up.
 
another question if I get this working, how do I run a command for one
of the routes...like using sendfax?
 
any help + lead will be much appreciated
 
Terrance