[ic] order routes, and some amazingly weird results.

Cameron interchange-users@icdevgroup.org
Thu Oct 24 11:41:01 2002


ok, can someone please tell me how on earth this stuff -

#### begin 000039 #####
Add new customer: 18
Set password:  apassword
Update userdb: Updated customer record.
Add main order  000039 to transactions: 1
Added 400 to orderline: 1
Inventory now:
Added 500 to orderline: 1
Inventory now:
#### end 000039 #####

- is getting encrypted and sent to me via email instead of the actual
submitted order? pretty amusing, really. that's what happens when i try to
run the "main" order route first. if i try to run it second, THIS is what i
get:

> Error during creation of order routing main:
> No order report  or  found. at /usr/lib/interchange/lib/Vend/Order.pm line
1491.
>

Despite the fact i've most definately got a "report            etc/report"
in my main Route, *AND* "OrderReport     etc/report" above it all in the
config. Ugh. just as i finally got PGP actually encrypting something, this
has to happen to me :)

For the sake of finality, here's all the Route stuff. I'm not setting any
mv_order_route on the checkout page, either.


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

Route main  <<EOF
        attach            0
        default           1
        email             'email@address'
        encrypt           1
#       encrypt_program   "gpg -e -a -r '%s' --batch"
        errors_to         email@address
        pgp_cc_key        "__PGP_KEY__"
        pgp_key           "__PGP_KEY__"
        receipt           etc/receipt.html
        report            etc/report
        supplant          1
        individual_track  orders
        track             logs/tracking.asc
EOF


Route log_entry  <<EOF
        empty        1
        encrypt      0
        report       etc/log_entry
        supplant     0
        track        logs/log
EOF

Route   default   master          1
Route   default   cascade         "log main"
Route   default   empty           1
Route   default   supplant        1
Route   default   email           'email@account'