I am adding visitor-tracking extensions to a site that uses Miva for its
cart. In order to complete the project I need to correlate a cookie
that I set on the visitor's initial arrival to purchases.
In examining Miva's docs I've concluded that I will need to write a
module to achieve this functionality. However, looking over the module
functions list, I don't see anything that gets called after an order is
completed. There is SystemModule_Action_Save_OrderInformation, but
another post on this mailing list indicated that this is not called
after checkout is complete, but after the user's information is entered.
What is the best function for me to use to achieve this? All I really
want is to access the previously set cookie on the user's browser and
store that information along with the order total in a database.
Basically about 5 lines of code in PHP or any other scripting language.
Any suggestions appreciated.
Adam
PS One other thought I had was to avoid writing a module by embedding a
1x1 transparent gif onto the invoice page that displays after checkout
is complete. Then I can have that gif be a PHP script that logs a sale
corresponding to the cookie, although the order total won't be
available. But there doesn't seem to be any way to modify the HTML
displayed on the invoice page?
Comment