Announcement

Collapse
No announcement yet.

Order Completion - Executing a Perl Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Order Completion - Executing a Perl Script

    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

    #2
    Mike,

    Its a brave man that plays with OrderScript.pl.
    However, I believe the 'main' part of the script consists of three lines:

    Init();
    ProcessInput();
    exit;

    So the simplest thing would be to call your own function after these two calls.

    Alan Compton
    www.greenknightgames.co.uk
    Great board games and cards games you won't find in the High Street

    Comment

    Working...
    X