[TYPO3-commerce] extend mail templates

Heiko Hänsge mailinglisten at wild-wild-web.de
Fri Nov 16 19:27:23 CET 2007


Hi,

crawling through the code of
ext/commerce/pi3/class.tx_commerce_pi3.php
I found out that in the function generateMail()
markers for the order date $markerArray['###ORDERDATE###']
and the - standalone - customers name $markerArray['###CUST_NAME###']
are already generated and filled.
But unfortunately they are not getting substituted in the templates.
Somebody knows why and how I could get them working?

regards
Heiko

------------ Original-Nachricht ------------
Franz Koch schrieb am 08.11.2007 13:32 Uhr:
> Hi,
>
>   
>> I'm wondering if and how one could add additional data to the order 
>> email templates.
>>     
>
> Use a hook:
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi3/class.tx_commerce_pi3.php']['generateMail'][] 
> = 'your_class_name';
>
>   
>> What I am missing are markers to include the order date and time and the 
>> website name, plugin.tx_commerce_lib.defEmailSendername or URL.
>>     
>
> see the hook
>
>   
>> Also, some of the customers have a costumers number from orders made by 
>> postal mail or telephone.
>> I would like to provide the possibility that customers having a 
>> costumers number can add them to the system during registration process.
>> And then of course I'd need a marker in the email templates and a way to 
>> include these customers number to each order mail.
>>     
>
> see the hook. For registration I use sr_feuser_register.
>
>   
>> Somebody was confronted with this kind of problem already and found a 
>> solution?
>>     
>
> yes, using this hook ;)
>
> --
> Greetings,
> Franz
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce
>
>
>   


More information about the TYPO3-project-commerce mailing list