[TYPO3-commerce] About checkout message

Luc Muller l.mul-nospam-ler at ameos.com
Tue Apr 10 14:19:28 CEST 2007


I had a look at the hook
AfterMailSend
In this hook we can access : $orderData
but it's too early at this moment because after markerArray a refilled :

$markerArray['###MESSAGE###']='';
  $markerArray['###LISTING_TITLE###'] = 
$this->pi_getLL('order_confirmation');

  $markerArray['###FINISH_MESSAGE_GOOD###'] = 
$this->pi_getLL('finish_message_good');
  $markerArray['###FINISH_MESSAGE_BAD###'] = 
$this->pi_getLL('finish_message_bad');
  $markerArray['###FINISH_MESSAGE_EMAIL###'] = 
$this->pi_getLL('finish_message_email');
  $markerArray['###FINISH_MESSAGE_NOEMAIL###'] = 
$this->pi_getLL('finish_message_noemail');
  $markerArray['###FINISH_MESSAGE_THANKYOU###'] = 
$this->pi_getLL('finish_message_thankyou');

Can we pass : $orderData to the hook method in the hook ProcessMarker ?

That will modify

foreach($hookObjectsArr as $hookObj) {
   if (method_exists($hookObj, 'ProcessMarker')) {
    $markerArray=$hookObj->ProcessMarker($markerArray,$this);
   }
  }

in

foreach($hookObjectsArr as $hookObj) {
   if (method_exists($hookObj, 'ProcessMarker')) {
    $markerArray=$hookObj->ProcessMarker($markerArray,$orderData,$this);
   }
  }

How About this ?

"Luc Muller" <l.mul-nospam-ler at ameos.com> a écrit dans le message de news: 
mailman.1.1176206863.25913.typo3-project-commerce at lists.netfielders.de...
> When finishing an order.
> In default template every checkout message is filled
>
> this result in displaying each checkout message
> theses are the markers : ###MESSAGE###
> ###LISTING_TITLE###
> ###FINISH_MESSAGE_GOOD###
> ###FINISH_MESSAGE_BAD###
> ###FINISH_MESSAGE_EMAIL###
> ###FINISH_MESSAGE_NOEMAIL###
> etc...
>
> My question is : How those message are handled to display correctly ?
> I need to display a different message for each payment type, but for the 
> moment all the message are disaplyed in all the cases.
>
> Which hook should I use to do this ?
> I tried with the processMarker Hook in pi3 but I can't get the payment 
> article ID that is used.
> Should I use another Hook to do this ? is there another way to display a 
> different ending message for each payment types ?
>
> Thanks a lot
>
> Luc
>
> 




More information about the TYPO3-project-commerce mailing list