I've made a few modifications to a FreeTrade installation I've been
working on.  They were fairly easy, and I think they make the working
process (getting orders, etc.) a fair amount easier (unless I've
missed current functionality that duplicates this sort of thing).

I don't know if the code I've written is particularly useful -- some
of it's rather hackish, and other's are just snippets over a number of
files.  And it's mixed in with other modifications.  But anyway...

One modification is to make a complete view of an invoice.  This
displays the invoice, billing address, billing information (CC number,
address, etc.), and it displays all the information for all the IBIDs
association with the invoice.  It checks to make sure it's viewed over
HTTPS, so CC numbers can't be stolen.  It's mostly just an combination
of the view_invoice and view_ibid SCREENs, plus billing info.
Something that I haven't done, but just realized I should, is also put
a form for changing the status.  I called this new screen
view_complete_invoice.

Next, I added a notification email whenever an order is placed.  This
sends an email with some simple information ("an order has been
placed") and a link.  This link looks something like:

ScreenURL("login", TRUE) . 
  "&Continue_SCREEN=view_complete_invoice&invoice_ID=" . $invoice_ID

Then I changed the login screen to put any variables in $HTTP_GET_VARS
as hidden inputs, so they get passed through the login.

Then I changed the login action so that if the variable
Continue_SCREEN was set, it changed $SCREEN to that value.  This way
you can make someone login and get passed directly to some location.
(It will be implicitly over HTTPS, since that's the way the login
works).

The only other change is to admin_invoice, where I make a link to the
view_complete_invoice for each invoice.

Altogether this isn't much code, but for a site where the people
filling the orders aren't technically skilled -- or even competent --
I think it will be much easier.  They just check email, follow the
given links, and change the order status (to show they've filled the
order).  Heck, they'll probably end up just printing these all out and
deleting the email when they've got the hard copy -- whatever makes
them happy.

  -- Ian


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to