[TYPO3-shop] Payment GW: 'This' Must be Object!

Juan Pablo Villaverde jpablo at omnisciens.com
Sat Jan 12 21:20:39 CET 2008


Now I solved the UID problem with a little code addition. I needed to add 
this to payment_DIBS:

if (!is_object($order)) {
 include_once (PATH_BE_ttproducts.'model/class.tx_ttproducts_order.php');
 // order
 $order = &t3lib_div::getUserObj('tx_ttproducts_order');
 $order->init(
  $this->pibase,
  $this->cnf,
  $this->tt_products,
  $this->tt_products_articles,
  $this->tt_products_cat,
  $this->basket,
  $this->conf['useArticles']
 );
}
$orderUid = $order->getBlankUid();

I include this for reference, I hope that this code helps someone else with 
the same problem :)

> De: "Juan Pablo Villaverde" <jpablo at omnisciens.com>
>Asunto: Re: [TYPO3-shop] Payment GW: 'This' Must be Object!
>Fecha: Sábado, 12 de Enero de 2008 05:26 p.m.

>Fatal error: Call to a member function on a non-object in C:\Archivos de 
>programa\Apache The fatal error is in this call:  $orderUid = 
>$this->order->getBlankUid();




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