[TYPO3-shop] handleScript doesn't seem to launch
Peter Leighton
t3 at fuseinternet.co.uk
Mon Oct 16 11:57:39 CEST 2006
Christophe wrote:
>> Hello!
>>
>> I'm trying to setup a shop using tt_products 2.5.1. and I don't find
>> the way to reach the bank's payment gateway.
>>
>> I tried to replace paymentActivity = finalize by paymentActivity =
>> payment, i added
>> <input type="hidden" name="products_cmd" value="cardno" /> in the shop
>> template...
>>
>> And after the payment page, i directly jump to the finalize page....
>>
>> I readed all the concerning posts, and didn't find any solution.
>>
>> Obviously, i missed something.
>> Thanks for help
>>
>> Best regards
>> Christophe
>>
>>
Hi,
I have found the same problem in 2.5.1, it seems that in
control/class.tx_ttproducts_control.php, line 163
$handleScript =
$TSFE->tmpl->getFileName($this->basket->basketExtra['payment.']['handleScript']);
the variable $handleScript is empty !
changing line 163 to:
$handleScript = $this->basket->basketExtra['payment.']['handleScript'];
and the script gets called, but not sure how useful this is as this then
leads to errors from the dibs file, e.g.
$lConf = $lConf;
does not seem to have the value of the template file whereas if you use
the line
$lConf = $this->basket->basketExtra["payment."]["handleScript."];
then $lConf['templateFile'] contains the value of the template file
also
$orderUid = $this->order->getBlankUid();
gives us - Fatal error: Call to a member function on a non-object
as order is not an object
and
$content=$this->basketView->getView($localTemplateCode,'PAYMENT',
$address, false, false, $tSubpart);
gives us - Fatal error: Call to a member function on a non-object
as basketView is not an object
How to make these objects available in the dibs file ?
regards
Peter Leighton
More information about the TYPO3-project-tt-products
mailing list