[TYPO3-shop] handleScript
John Nicholas
J_nicholas at excite.com
Wed Nov 19 18:01:27 CET 2008
Please help me clarify how handleScript works.
It looks to me like if a handleScript is defined in typoscript the
processPayment method of class.tt_products_control.php this line is called
$content.= $this->paymentshipping->includeHandleScript($handleScript,
$this->basket->basketExtra['payment.']['handleScript.'],
$this->conf['paymentActivity'], $bFinalize);
which should get to this function in
function includeHandleScript($handleScript, &$confScript, $activity,
&$bFinalize) {
$content = '';
include($handleScript);
return $content;
}
which basically puts my handlescript inline. if I put a die("In the
handle script!") that text will be displayed. I can also run some code i
there. for example:
$localTemplateCode = $this->pibase->cObj->fileResource(
'EXT:tt_products/template/payment_Authorize_template.tmpl'); // Fetches
the Authorize.net template file
$localTemplateCode =
$this->pibase->cObj->substituteMarkerArrayCached($localTemplateCode,
$this->pibase->globalMarkerArray);
die($localTemplateCode)
will display the template code. since the includeHandleScript function
just returns content. I would assume that I generate a form or run the
authorization and put the results in $content. anything besides the
die() just goes to the finalize page.
After a few days of experimenting I have no idea what to do next.
More information about the TYPO3-project-tt-products
mailing list