[TYPO3-shop] Hook to finalizeOrder

Carsten Bleicker bleicker at boros.de
Fri Oct 26 17:18:33 CEST 2007


hi there,
i used the hook in class.tx_ttproducts_activity_finalize.php.

codesnipped:
// Call all finalizeOrder hooks
if (is_array ($TYPO3_CONF_VARS['EXTCONF'][TT_PRODUCTS_EXTkey]['finalizeOrder'])) {
	foreach  ($TYPO3_CONF_VARS['EXTCONF'][TT_PRODUCTS_EXTkey]['finalizeOrder'] as $classRef) {
		$hookObj= &t3lib_div::getUserObj($classRef);
		if (method_exists($hookObj, 'finalizeOrder')) {
			$hookObj->finalizeOrder($this, $address, $templateCode, $basketView, $viewTable, $price, $orderUid, $orderConfirmationHTML, $error_message);
		}
	}
}


$hooObj exists and method is called.
function finalizeOrder(&$this, &$address, &$templateCode, &$basketView, &$viewTable, &$price, &$orderUid, &$orderConfirmationHTML, &$error_message){
	debugster($this);
}


BUT:
i get an empty page it this method is called.
and nothing is debuged.


anybody an idea?

thanks

carsten


More information about the TYPO3-project-tt-products mailing list