[TYPO3-shop] Finalize problem and wrong pids

Paul Hansen paul at ecopixel.com
Fri Jul 28 15:08:05 CEST 2006


Karsten wrote:
> Paul Hansen skrev:
>>
>> This works from handleScript:
>>
>> $orderUid = $this->basketView->order->getBlankUid();
>>
>> Take care,
>> Paul
> 
>  Yes it did, thanks Paul i have used it in too places, in line 54 and 84.
> 
> But now i got this:
> 
> Fatal error: Call to a member function priceFormat() on a non-object in 
> mysite.com\typo3conf\ext\tt_products\pi1\payment_DIBS.php on line 167
> 
> and the line 167 is:
> <input type="hidden" name="ordline'.$cc.'-4" 
> value="'.$pibase->price->priceFormat($actItem['totalTax']).'">';

Other changes needed are along these lines:

$price = 
$this->basket->price->priceFormat($this->basket->calculatedArray['priceTax']['total']);

And this:

$this->basketView->order->finalize(
	$this->basketView->templateCode,
	$this->basketView, $this->basketView->viewTable,
	$this->basket->price,
	$orderUid, $content, $tmp='');

I'm not using DIBS; I wrote a handleScript for another payment gateway.

I think I read in the newsgroup that the DIBS handleScript is 
depreciated due to changes at DIBS, which might explain why it hasn't 
been updated to keep pace with the many recent changes/improvements to 
tt_products.

Another, newer way to handle payments in tt_products is with paymentlib. 
It looks like implementations are available for tt_products sponsors.

Take care,
Paul



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