Page 1 of 1

Access Aimeos orders in my extension

Posted: 19 Sep 2015, 12:31
by vikram
Hi,

I want to access orders placed by an user in my extension.

I have done the following:
added to ext_localconf.php

Code: Select all

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['extDirs']['1_'.$_EXTKEY] =
  'EXT:' . $_EXTKEY . '/Resources/Extensions/';
 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['confDirs']['1_'.$_EXTKEY] =
  'EXT:' . $_EXTKEY . '/Resources/Private/Config/';
copied /aimeos/Resources/Private/Config to my extension

And then
class SaleController extends \Aimeos\Aimeos\Controller\AbstractController {

but the actions do not output any thing. Echo/print_r works but not the fluid templates output.

What did I miss ?

regards
Vikram

Re: Access Aimeos orders in my extension

Posted: 22 Sep 2015, 03:23
by vikram
I missed the TS.. after adding the TS I get the following:

Code: Select all

Fatal error: Call to a member function assign() on a non-object
Someone please suggest where can I look for some solution.

Re: Access Aimeos orders in my extension

Posted: 22 Sep 2015, 08:39
by aimeos
vikram wrote:I missed the TS.. after adding the TS I get the following:

Code: Select all

Fatal error: Call to a member function assign() on a non-object
Someone please suggest where can I look for some solution.
The TYPO3 Aimeos abstract controller removes the Fluid view for performance reasons. You can re-enable it if you add this method:

Code: Select all

protected function resolveView()
{
	return \TYPO3\CMS\Extbase\Mvc\Controller\ActionController::resolveView();
}