[TYPO3-commerce] move order mail - hook
Peter Waechtler
piet at repiet.com
Mon Oct 15 15:39:15 CEST 2007
hi michel,
i am using this hook now:
>> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/hooks/
>> class.tx_commerce_ordermailhooks.php']['generateMail']
looked in the source and found references to it. so it exists and i
do not get any error message.
i am calling it and using the function
function ProcessMarker($markerArray,$this) {
$markerArray['###TRACKINGNO###'] = 'test';
return $markerArray;
}
to populate a field in the mail template - but is not being replaced.
have you managed to get a marker inside of a move order mail?
best regards,
piet
On 12 Oct 2007, at 11:34 AM, Michiel Roos wrote:
> Peter Waechtler wrote:
>> hi michiel,
>>
>> thanks for the tip - just a question on the second hook - the
>> directory
>> it is referencing to does not exist. should it not rather be:
>>
>> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/hooks/
>> class.tx_commerce_ordermailhooks.php']['generateMail']
>>
>>
>> or am i not understanding something here?
>
> Oops,
>
> Well . . .
>
> Nice catch . . .
>
> I grepped through the complete commerce code to get a list of all the
> things that look like or actually are a hook. Then I created an
> extension 'nc_commerce_hookinspector' to see when what hooks are
> called.
>
> The hook in the code does indeed point to a class file that is nowhere
> to be found in commerce:
> find ./ -name class.tx_commerce_moveordermail.php
>
> So it looks like there is an extension that has never been seen out in
> the wild called: commerce_ordermails
>
> I hope that this extension will be released soon by the commerce team.
> Either that or they should remove this hook from code altogether.
> Since
> it does (as it apears) confuse us.
>
> :-)
>
> Kind regards,
>
>
> Michiel Roos
>
> --
> Netcreators BV :: creation and innovation
> www.netcreators.com
>
> Interesse in werken bij Netcreators?
> http://www.netcreators.com/bedrijf/vacatures/
> _______________________________________________
> 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