[ic] order route unchangable

Paul Jordan interchange-users@icdevgroup.org
Thu Jun 20 17:43:01 2002


OK I am stumped

I am on 4.8.3 and I am trying to setup different order routes. I am trying
to use mv_order_route like:

checkout.html page:

<input type=hidded name="mv_order_route" value="__ORDER_ROUTE__">

For ORDER_ROUTE I have...     log main copy_user show



On checkout2.html I have:

<input type=hidded name="mv_order_route" value="__ORDER_ROUTEB__">

For ORDER_ROUTEB I have...     log main copy_user show_b


I have been around and around and it seems there is alot of info out there,
on the various sites that host the docs, they all pretty much say the same
thing, however when I open catalog.cfg, I see something entirely different!

I fiddled here and there and eventually came to realize that the order route
is NOT in catalog.cfg. I say this becuase I would change little things, in
hopes of seeing different outcome, such as changing the receipt page
location, and nothing.

Before I ramble on too much, I came to the conclusion that I should just try
the "old fashion" route method, not with the <<EOF (like in 4.8.3
catalog.cfg) or <<EOR (sample in docs) but with this:

-----------------------------------------------------------
# Along these lines further, for better integrity and less chance of a
# user screwing up your order routes:
# Note that __ORDER_ROUTES__ is empty by default, default Route "default"
# is used with cascades
FormIgnore      mv_order_route

## This route places the order entry in the database. If you don't
## have an inventory table (or a userdb table for that matter) make
## sure you remove it from the list of "transactions" tables.

Route  log  empty        1
Route  log  encrypt      0
Route  log  increment    0
Route  log  report       etc/log_transaction
Route  log  supplant     0
Route  log  track        logs/log

## This route places the order entry in the database when you are
## entering an order from the admin. See above.
Route log_entry  <<EOF
        empty        1
        encrypt      0
        report       etc/log_entry
        supplant     0
        track        logs/log
EOF

ifdef TRANSACTION_TABLES
Route log       transactions '__TRANSACTION_TABLES__'
Route log_entry transactions '__TRANSACTION_TABLES__'
endif

## This route copies the user if they requested that. We don't
## care (much) if it fails, so error_ok is set and failure will
## not cause the order to fail

Route  copy_user  empty        1
Route  copy_user  error_ok     1
Route  copy_user  encrypt      0
Route  copy_user  increment    0
Route  copy_user  report       etc/mail_receipt
Route  copy_user  supplant     0
Route  copy_user  track        logs/log

Route  show  empty        1
Route  show  error_ok     0
Route  show  encrypt      0
Route  show  increment    0
Route  show  receipt      etc/receipt.html
Route  show  supplant     0


Route  show_b  empty        1
Route  show_b  error_ok     0
Route  show_b  encrypt      0
Route  show_b  increment    0
Route  show_b  receipt      etc/receipt2.html
Route  show_b  supplant     0

ParseVariables Yes
## This route emails the order to you unless email is set to "",
## and failsafe-logs the order report a couple of places

Route  main  attach            0
Route  main  credit_card       1
Route  main  default           1
Route  main  email             '__ORDERS_TO__'
Route  main  encrypt           0
Route  main  errors_to         '__ORDERS_TO__'
Route  main  pgp_cc_key        "__PGP_KEY__"
Route  main  pgp_key           "__PGP_KEY__"
Route  main  report            etc/report
Route  main  supplant          1
Route  main  individual_track  orders
Route  main  track             logs/tracking.asc


# Order routes can be maintained in a database
# CHANGES TO THIS WILL OVERRIDE THE ROUTES ABOVE.
# RouteDatabase   route

# Default route is run if no routes set, this should be last Route
# always
# Route   default   master          1
# Route   default   cascade         "log main copy_user"
# Route   default   empty           1
# Route   default   supplant        1
# Route   default   email           '__ORDERS_TO__'

## Uncomment this if you want Routes read dynamically from DB
## Route   default   dynamic_routes  1
## Uncomment this if you want ITL allowed in routes
#Route   default   expandable      1
-----------------------------------------------------------------------

So you don't think I am lazy, I want to say that I have tried various states
of commenting WRT RouteDatabase, Route  Default, FormIgnore, etc etc, never
changes anything.

BTW, Yes, I restart the whole catalog everytime.

I am at a lose becuase I don't even know how IC is even doing what it is
doing. My route.txt is empty. The only thing I can think of is that I am
using the "failsafe" =>log everything and show receipt.


I am not too crazy about using a deprecated method, but I just need
*something to show signs of life, so I can attempt to control it.

I have a checkout for processing CC orders, and a checkout2 for processing
mail/fax orders. I simply want to "accept" the submit, and show a different
receipt page(receipt2.html) from the latter.

Any, ANY, help will be appreciated, because I can't even make a dent!

Paul