[Typo3-shop] Right value for $basket->category?

Franz Holzinger franz at fholzinger.com
Wed Nov 30 20:09:44 CET 2005


Hello Jesper,
> Using tt_products 2.3.10, FEBELibrary 0.0.5, TableLibrary 0.0.6.
> 
> I have copied the finalization code from payment_DIBS.php (Lines 
> 194-196), but this code crashes now:
> 
> PHP Fatal error:  Call to a member function on a non-object in 
> /var/www/typo3-3.8.0/typo3/ext/tt_products/lib/class.tx_ttproducts_finalize_div.php 
> on line 176
> 
> This line accesses the $tt_products_cat argument, which has 
> $basket->category as its parameter in the call.
> 
> $basket->category is never set in the DIBS template either, so I don't 
> really know what it is supposed to be.
> 
You have to set this line in the DIBS script to

tx_ttproducts_finalize_div::finalizeOrder($pibase,$basket->conf,$basket->templateCode, 
$basket,$basket->tt_products /* TODO */,$basket->tt_products_cat, 
$basket->price, $orderUid,$content,$error);	// Important: finalizeOrder 
MUST come after the call of prodObj->getBasket, because this function, 
getBasket, calculates the order! And that information is used in the 
finalize-function


Franz



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