Contao Isotope Hooks
Das E-Commerce System Isotope für Contao liefert eine Menge Hooks.
Um herauszufinden welche Hooks es gibt wird einfach das globale Array ausgegeben:
echo "<pre>";
foreach ($GLOBALS['ISO_HOOKS'] as $key=> $value)
echo $key."<br>";
In der Version 2.4 von Isotope liefert diese Abfrage folgende Hooks
findSurchargesForCollection
postCheckout
calculatePrice
orderConditions
generateDocumentTemplate
initializePostsale
compileCart
preCheckout
transferredCollection
postDeleteCollection
buttons
postOrderStatusUpdate
preOrderStatusUpdate
postAddProductToCollection
postUpdateProductInCollection
Angewendet im config.php.
$GLOBALS['ISO_HOOKS']['findSurchargesForCollection'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['postCheckout'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['calculatePrice'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['orderConditions'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['generateDocumentTemplate'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['initializePostsale'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['compileCart'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['preCheckout'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['transferredCollection'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['postDeleteCollection'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['buttons'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['postOrderStatusUpdate'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['preOrderStatusUpdate'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['postAddProductToCollection'] = array('ClassXY','MethodXY');
$GLOBALS['ISO_HOOKS']['postUpdateProductInCollection'] = array('ClassXY','MethodXY');
Contao 3.5 / Isotope 2.4