[ic] Order Routing

Kevin Walsh interchange-users@interchange.redhat.com
Thu Mar 28 12:46:02 2002


> 
> I am trying to set up my order system where they have the option of not
> emailing in their order and instead they can push a button and go to the
> receipt.html page where they can print the page and fax it in.
> 
> I have been trying to reset the mv_order_route value depending on which
> button they click.
> 
> And I have also been playing with the order routing in catalog.cfg.  Adding
> a Route print routing:
> 	Route print <<EOF
> 		error_ok		1
> 		attach		0
> 		credit_card	0
> 		default		0
> 		email		""
> 		encrypt		0
> 		errors_to	'__ORDERS_TO__'
> 		receipt		etc/receiptfax.html 	//trying to reroute to a different receipt
> page ---NOT WORKING either!
> 		report		etc/report
> 		individual_track	orders
> 		track		logs/tracking.asc
> EOF
> 
> I know I have probably out-thought this whole thing but if anyone has any
> suggestions on how to avoid emailing the order---I would appreciate the
> help!!
> 
> 
If you are setting the mv_order_route on the checkout page then
make sure you don't have "FormIgnore mv_order_route" in your
catalog.cfg file.  If you do then your value will be ignored.

I would have chosen a simpler approach, as follows:

    1) Keep the routes as standard.

    2) The etc/mail_receipt could be modified to not send an email
       if the order is to be faxed.  I would send the email anyway,
       perhaps with slightly modified text, using [if value fax_order]
       or something.

    3) Modify the etc/receipt.html to show different text depending
       upon the payment method, or come up with a scheme to [include]
       a different file for each payment method.

...but that's just me.

Check your FormIgnore directives, as that could be what's stopping
your method from working.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/