[TYPO3-shop] Fatal error
Karsten
webdesign.karsten at gmail.com
Sun Jan 13 07:41:27 CET 2008
Juan Pablo Villaverde skrev:
> Hi, I just had the same problem, I was able to get the UID in this way:
>
> 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();
>
> Hope that helps! :-)
>
> "Karsten" <webdesign.karsten at gmail.com> escribió en el mensaje
> news:mailman.1.1197039253.22790.typo3-project-tt-products at lists.netfielders.de...
>> Hi Lars
>>
>> I am sorry, that didn't do the trick, but thanks for trying!
>>
>> Franz do you have a solution to this?
>>
>> Karsten P
>>
>>
>> Dycon - Lars Dyhr skrev:
>>> Hi Karsten
>>>
>>> Karsten wrote:
>>>> Anybody...?
>>>>
>>>> How can i get the $orderUid?, thats the only thing i am missing, to get
>>>> it all working again with my payment gateway, after updating to version
>>>> 2.5.3, and the server updated to php5
>>>>
>>>> Karsten P
>>>>
>>>> Karsten skrev:
>>>>> Karsten skrev:
>>>>>> Just updated to 2.5.3 and now i get this error in my modified
>>>>>> dibstemplate:
>>>>>>
>>>>>>
>>>>>> Fatal error: Call to a member function getView() on a non-object in
>>>>>> D:\www\shop\typo3conf\ext\tt_products\pi1\payment_kap.php on line 39
>>>>>>
>>>>>> The line is:
>>>>>> $content=$this->basketView->getView($localTemplateCode,'PAYMENT',
>>>>>> $tSubpart); // This not only gets the output but also
>>>>>> calculates the basket total, so it's NECESSARY!
>>>>>>
>>>>>> Karsten
>>>>>>
>>>>> have tried with the dibs template, it returned:
>>>>>
>>>>> Fatal error: Call to a member function getBlankUid() on a non-object in
>>>>> D:\www\shop\typo3conf\ext\tt_products\pi1\payment_DIBS.php on line 69
>>>>>
>>>>> this line:
>>>>>
>>>>> $orderUid = $this->order->getBlankUid();
>>>>>
>>>>> have also tried:
>>>>> $orderUid = $this->pibase->order->getBlankUid();
>>>>>
>>>>> same result!
>>>>>
>>>>> Karsten
>>>
>>> I had the same problems that you have described.
>>> I didn't find a working solution without hacking tt_products a bit (vers.
>>> 2.5.2).
>>>
>>> I recall the issues with the non member function calls. In my dibs code I
>>> have put the call for $orderUid down in the switch statement so that it
>>> will only be called in that view - try that - maybe it will help you.
>>>
>>> Otherwise I don't think I will be able to help as I modified the source
>>> too much for it to be of general value. (and it is not really recommended
>>> to hack the source ... sorry).
>>>
>>> <snip>
>>> switch($products_cmd) {
>>> case 'cardno':
>>> // Lars: Had to move it here as this object was out
>>> // of scope when finalizing the order.
>>> $orderUid = $this->pibase->order->getBlankUid();
>>>
>>> </snip>
>>>
>>> Kind regards
>>> Lars Dyhr
>
>
Hi Juan
I worked, thats great. Thanks a million...
Karsten
More information about the TYPO3-project-tt-products
mailing list