[TYPO3-shop] tt_products 2.7.0

Matt Sturkenboom m.sturkenboom at gmail.com
Fri Sep 26 13:41:25 CEST 2008


This is the code of payment.php and when I echo the content I see i
reads the template file but i it does not show it:

if (!is_object($pibase) || !is_object($this->cObj)  ||
!is_object($this->basket))	die('tt_products: $pibase and $pibase->cObj
must be objects!');

// $lConf = $this->basketExtra["payment."]["handleScript."];		
// Loads the handleScript TypoScript into $lConf.
$lConf = $confScript;

$localTemplateCode = $this->cObj->fileResource($lConf['templateFile']
? $lConf['templateFile'] :
'EXT:tt_products/template/payment_DIBS_template.tmpl');		// Fetches
the DIBS template file
if (!is_object($basketView))	{
	$error_code = '';
	$basketView = &t3lib_div::getUserObj('tx_ttproducts_basket_view',1);
	$basketView->init ($pibase, array(), FALSE, $this->templateCode, $error_code);
}
$markerObj = &t3lib_div::getUserObj('&tx_ttproducts_marker');
$localTemplateCode =
$this->cObj->substituteMarkerArrayCached($localTemplateCode,
$markerObj->getGlobalMarkerArray());

$tablesObj = &t3lib_div::getUserObj('&tx_ttproducts_tables');
$order = &$tablesObj->get('sys_products_orders');

$orderUid = $order->getBlankUid();	// Gets an order number, creates a
new order if no order is associated with the current session

$param = '&FE_SESSION_KEY='.rawurlencode(
$GLOBALS['TSFE']->fe_user->id.'-'.
	md5(
	$GLOBALS['TSFE']->fe_user->id.'/'.
	$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']
	)
);

//echo "tc : " .$localTemplateCode;
//echo "bedrag :
".round($this->basket->calculatedArray['priceTax']['total']*100);
//echo "Order : ".$this->order->getNumber($orderUid);

$content=$basketView->getView($localTemplateCode, 'PAYMENT',
$infoViewObj, false, false, false,
'###IDEAL_STEP1_TEMPLATE###',$markerArray);

$markerArray=array();
$markerArray['###ORDER_ID###'] = $order->getNumber($orderUid);

$content=$pibase->cObj->substituteMarkerArrayCached($content, $markerArray);



2008/9/26 Franz Holzinger <franz at fholzinger.com>:
> Matt Sturkenboom a écrit :
>> This is my config for the payment :
>>
>>    90.title = iDEAL.
>>    90.handleScript = fileadmin/payments/code/payment.php
>>    90.image.file = fileadmin/img/ideal_logo.jpg
>>    90.handleScript {
>>      returnURL = http://www.safesupport.eu
>>      templateFile = fileadmin/templates/shop/ideal.tmpl
>>    }
>>
>> And the code that is in payment.php is very much the same like in
>> payment_dibs.php.
>> And the problem is the content of the template does not show? If I
>> echo the content I see he reads it but it does not show.
>>
>> If it helps I can also post the payment.php code.
>
> Yes, you shall also send the file payment.php to check it.
>
> - Franz
> _______________________________________________
> TYPO3-project-tt-products mailing list
> TYPO3-project-tt-products at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-products
>


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