[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/doc/features/3.9/ -> orderconfirmation.txt (source)

   1  *Title: Order confirmation handler.
   2  
   3  *Incentive:
   4  Be able to control the handling of confirmation email that are sent to
   5  the administrator and customer when any product is confirmed in the shop.
   6  
   7  *Documentation:
   8  
   9  Modifications are done in ezshopoperationcollection.php where you have
  10  the function sendOrderEmails()
  11  
  12  Instead of sending the email directly in this function, it's made a eZConfirmOrderHandler 
  13  which can be customised in a extension.
  14  
  15  The handler need to implement a execute function which should receive a parameter.
  16  
  17  The parameter should be an array and will contain:
  18  
  19  array( 'email' => 'thecustomeremail@ez.no',
  20         'order' => $order );
  21  
  22  - thecustomeremail@ez.no: A valid email address that is entered by the customer.
  23  - $order: The current eZOrder object.
  24  
  25  The confirmorder handler should be placed in:
  26  kernel/classes/confirmorderhandlers/ and should have the prefix confirmorderhandler.php
  27  
  28  The default handler is:
  29  kernel/classes/confirmorderhandlers/ezdefaultconfirmorderhandler.php
  30  
  31  example of a custom handler:
  32  extension/myextension/confirmorderhandlers/mycustomconfirmorderhandler.php
  33  
  34  You do also need to add a setting in shopaccount.ini:
  35  
  36  [HandlerSettings]
  37  # A list of directories to search for shopaccount handlers
  38  Repositories[]=kernel/classes
  39  # A list of extensions which have shop account handlers
  40  # It's common to create a settings/shopaccount.ini.append file
  41  # in your extension and add the extension name to automatically
  42  # get handlers from the extension when it's turned on.
  43  ExtensionRepositories[]
  44  
  45  # Settings for how order emails should be handled in the shop/checkout
  46  # default is to send confirmation emails to both customer and admin.
  47  [ConfirmOrderSettings]
  48  Handler=ezdefault
  49  # Allows for overriding a handler with another
  50  Alias[]


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7