fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-01-04 02:25 am

[dw-free] generate 'warning' email when check/money order order is checked out

[commit: http://hg.dwscoalition.org/dw-free/rev/5ed22aacfa73]

http://bugs.dwscoalition.org/show_bug.cgi?id=3357

Add a hook for site-specific logic when someone checks out a check/money
order.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/DW/Shop/Engine/CheckMoneyOrder.pm
--------------------------------------------------------------------------------
diff -r 5d875a3cebc4 -r 5ed22aacfa73 cgi-bin/DW/Shop/Engine/CheckMoneyOrder.pm
--- a/cgi-bin/DW/Shop/Engine/CheckMoneyOrder.pm	Tue Jan 04 08:40:58 2011 +0800
+++ b/cgi-bin/DW/Shop/Engine/CheckMoneyOrder.pm	Tue Jan 04 10:24:48 2011 +0800
@@ -111,6 +111,9 @@ sub confirm_order {
         } ),
     } );
 
+    # and run any additional actions desired (because this is such a manual process)
+    LJ::Hooks::run_hooks( 'check_money_order_pending', $cart, $u );
+
     return 2;
 }
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org