I have a requirement to log product references once an order has been completed.
My thoughts are to add the following lines of perl script to a the function that sends out the confirmation email.
-------possible perl script begin ---------------------------------------
$ext =".txt";
$Order_CODE = "OrderComplete";
$logSlot = "$Order_CODE$ext";
open LogSlotFile, ">/usr/users/user12345/public_html/LOG_orders/$logSlot";
print LogSlotFile "Actinic Order Complete \n";
close LogSlotFile;
-------possible perl script end ---------------------------------------
Just before i start experimenting with functions in "OrderScript.pl" can any tell me which would be the ideal function to amend (with caution).
Regards
Mike
My thoughts are to add the following lines of perl script to a the function that sends out the confirmation email.
-------possible perl script begin ---------------------------------------
$ext =".txt";
$Order_CODE = "OrderComplete";
$logSlot = "$Order_CODE$ext";
open LogSlotFile, ">/usr/users/user12345/public_html/LOG_orders/$logSlot";
print LogSlotFile "Actinic Order Complete \n";
close LogSlotFile;
-------possible perl script end ---------------------------------------
Just before i start experimenting with functions in "OrderScript.pl" can any tell me which would be the ideal function to amend (with caution).
Regards
Mike
Comment